What are the advantages of linked list over an array?

Solution

Size: As we all know the size of an array is fixed. Hence you cannot increase the size of array at runtime whereas if you are using linked list you can increase its size at runtime.

Insertion of Element: If you insert any element between array elements you have to shift all the elements and create the space for current element whereas using linked list you just need to point the current element by previous element and current element should point to next element.

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media