example of linear and non-linear data structures?
Answer Posted / sirsendu chakraborty
The data structure is said to be a Linear data structure if
its elements are in sequence and form a linear list.
Ex. Arrays, Stacks, Queues,Linked Lists.
If the elements of data structure do not form a sequence or a
linear list then that type of data structure is called as Non-
Linear data structure.
Ex. Trees, BST(Binary Search Trees) etc.
| Is This Answer Correct ? | 300 Yes | 21 No |
Post New Answer View All Answers
How does max heap work?
Does treemap preserve order?
Which collection is fail safe?
What is red black tree in data structure?
We know that Arrays are objects so why cannot we write strArray.length()?
How will you check the validity of an expression containing nested parentheses?
How many null values are allowed in hashmap?
What do u mean by data type?
Tell us the difference between merge and quick sort. Which one would you prefer and why?
What is a Stack? Explain with example?
What are the advantages and disadvantages of linked list over array?
What is the difference between set and unordered_set?
an array t[100] which contains numbers between 1..99. Return the duplicated value. Try both O(n) and O(n-square).
If you are using c language to implement the heterogeneous linked list, what pointer type should be used?
What is the space complexity of selection sort?