0
15kviews
What are the advantages of using linked lists over an array?
2 Answers
written 7.8 years ago by |
Dynamic size As the size of linked list is not fixed so we can add or remove as much elements as required. But in array we have to pre-define the array size which we can’t change later.
Ease of insertion/deletion
Inserting a new element in an array of elements is …
written 6.0 years ago by | • modified 6.0 years ago |
Advantages of Linked List
Linked list is a dynamic data structure so it can grow and shrink at runtime by allocating and deallocating memeory. So there is no need to give initial size of linked list.
Insertion and deletion of nodes are really easier. …