Double Linked List.

What is Doubly linked list and what is difference between Single and Double linked list?
Doubly Linked list, in doubly linked list each node contains three parts I) Data part and two pointers II) Next Pointer III) Previous Pointer.
                                        Next Pointer is a pointer of node type which points to next node of Doubly linked list. If there is no next node then next pointer points toward null means that node is last in that Doubly Linked List.
                                         Previous Pointer or Backward Pointer is a pointer of same node type which point to previous pointer of that linked list. If there is no previous node then previous node points towards null means that node is Start node of that linked list.

Double Linked List (source wikipedia)


Popular posts from this blog

Shutdown Pc

Ellipse using OpenGl

String Comparisons