Question discussion

Which of the following is not a linear data structure?

152725Medium 2 replies 12,686 views
0
CCommunity
A data structure is a data organization, management and storage format that enables efficient access and modification.

A data structure can be divided into two categories:

1. Linear data structure

A data structure is said to be linear if its elements form a sequence or a linear list.

Examples: Array, Linked List, Stacks, Queue

2. Nonlinear data structure

It arranges the data in sorted order and there exists a relationship between the data elements.

Examples: Tree, Graph
0
CCommunity
Tree is the correct answer.