Doubly Linked List
Doubly Linked List
we can traverse forward by using the next field and can traverse
backward by using the previous field. Every node in a double
linked list contains three fields as show in below figure.
Example:
www.vectorindia.org 1
Double Linked List
Insertion
In a double linked list, the insertion operation can be performed in three
ways as follows...
1. Inserting At Beginning of the list
2. Inserting At End of the list
3. Inserting At Specific location in the list
www.vectorindia.org 2
Double Linked List
www.vectorindia.org 3
Double Linked List
www.vectorindia.org 4
Double Linked List
Deletion
In a double linked list, the deletion operation can be performed in three ways
as follows...
1. Deleting from Beginning of the list
2. Deleting from End of the list
3. Deleting a Specific Node
www.vectorindia.org 5
Double Linked List
www.vectorindia.org 6
Double Linked List
www.vectorindia.org 7
Double Linked List
Note :
www.vectorindia.org 8