2. Linked List
What is a Linked List?
A Linked List is a data structure which is a collection of nodes and each node contains
data items and a pointer, popularly called Link which Points to the next node.
Distinguish between an Array and a Linked List
Array is fixed size whereas Linked List is dynamic sized.
Limitations of Array
Fixed in dimension, Chance of memory loss, cost of insertion and deletion of an
element is costly.
Advantages of Linked List:
Dynamic memory allocation, cost of inserting and deleting is less.