Professional Documents
Culture Documents
Advantages of Linked List
Advantages of Linked List
3. No Memory Wastage
The size of linked list can be increased and decreased at run time therefore there's no wastage of
memory. In array there is a lot of memory wastage, like if we declare an array of size 9 and store
only 4 elements in it then space of 5 elements are wasted. There is no such drawback in linked
list as memory is distributed only if needed.
4. Implementation
Linear data structures like stack and queues can be easily implemented using linked list. If we
are implementing a priority queue where we need quicker insertion in the middle, it is good to go
with linked list.