Data Structure

Welcome !

A Data Structure is a way of organizing and storing data in a computer so that it can be accessed and used efficiently.

Data structures can be broadly classified into two categories:

  1. Linear Data Structures: Data structures in which data elements are arranged sequentially or linearly, where each element is attached to its previous and next adjacent elements. Examples of linear data structures are array, stack, queue, linked list, etc.

  2. Non-Linear Data Structures: Data structures where data elements are not placed sequentially or linearly. In a non-linear data structure, we may able to traverse all the elements in a single run only. Examples of non-linear data structures are trees, hash table and graphs.

Last updated