What is Linked List ?
Linked List is a linear collection of data elements called as nodes and each nodes are connected between other nodes by a link using pointers.
Type of Linked List
Operation in Linked List
- Insertion of a new Node
- Deletion of a Node
Linked List Vs Array
- Array supports random access where linked list doesn’t
- Linked list has dynamic memory allocations while array not, therefore we can add any number of elements in linked list
- Operations such as insertion and deletion is easier and faster to do in linked list
- In array, elements are stored in consecutive memory locations while in linked list elements can be stored anywhere in the memory



Comments
Post a Comment