Data structure are of two types:
1. Linear data structure
2. Non-linear data structure.
Linear Data structure:
-A data structure is called linear if all of its elements are arranged in the sequential order.
-In linear data structures, the elements are stored in a non-hierarchical way where each item has the successors and predecessors except the first and last element.
Non-linear data structure:
-The Non-linear data structure does not form a sequence
i.e. each item or element is connected with two or more other items in a non-linear arrangement. The data elements are not arranged in the sequential structure.Read More →