Are linked lists considered linear or non-linear data structures?

Category: Data StructureAre linked lists considered linear or non-linear data structures?
1 Answers
Editor">Editor Staff answered 2 years ago

A linked list is considered both linear and non-linear data structure depending upon the situation.
On the basis of data storage, it is considered as a non-linear data structure.
On the basis of the access strategy, it is considered as a linear data-structure.