Avatar 💻 Developer by day, 🎮 gamer by night | Software Engineer in @Taboola | ☕ sometimes coffee lover | A good player in call of duty | 📷 sometimes love photography

Linear and non-linear Data structure

What is Data Structure?

A way of organizing the data in such a way so that can be used efficiently.

Difference between Linear and non-linear data structure:

Linear

  • If an element form a sequence or a linear list. It is said to be Linear. E.g: Array, LinkedList, Stack and Queues.
  • Traversal are Linear.

Non-linear

  • Traversal of node is non-linear in nature then it is said to be non-linear. E.g: Tree, graphs.

all tags