Friday, 1 December 2017

Advantages of Linked List:

1. size : Once List is created, the size of List may be increased or decreased dynamically.
2. Storage : List elements are stored in anywhere in memory locations. It is need not to be contiguous only. i.e. To allocate additional memory space and release unwanted space at the time of execution is possible.
3. Easy in insertion and deletion : Dynamic insertion of an element into list in any position and deletion from list is possible.
4. It is dynamic data structure with the ability to grow and shrink as per the program requirement.

Disadvantages of Linked List:

1. Additional memory required for link fields.
2. It is time consuming for searching an element than arrays.

Mukesh Rajput

No comments:

Post a Comment

Mukesh Rajput