What is Data structure?

Data structure is a method of organizing large amount of data more efficiently so that any operation on that data becomes easy.

Data structures are divided into two types:
  • Linear Data Structures 
  • Non linear Data structures 
Linear Data Structure: In Linear data structure, data is organised in sequential order.
Ex: Arrays, Linked list, Stacks and Queues

Non Linear Data Structure: In Non Linear data structure, data is organised in random order.
Ex: Tree, Graphs