Insertion in doubly linked list

There are three situation for inserting element in list.
1.Insertion at the front of list.
2.Insertion in the middle of the list.
3.Insertion at the end of the list.



Insertion at the beginning of doubly linked list




Insertion in the location of doubly linked list




Insertion at last of doubly linked list