Question: what is the difference between linear data structures and nonlinear data structure?
Answer: There are two types of data structures as linear and nonlinear data structures. Linear data structures allow traversing through the items sequentially. On the other hand, in a nonlinear data structure, each element is attached to one or more elements creating a relationship among the items.