Professional Documents
Culture Documents
Circularly Linked List
Circularly Linked List
LIST
What is circularly linked list:
• In single linked list, every node points to its next node in the sequence
and the last node points NULL.
• But in circular linked list, every node points to its next node in the
sequence but the last node points to the first node in the list.
• That means circular linked list is similar to the single linked list except
that the last node points to the first node in the list
Singly Linked List as Circular
• In singly linked list, the next pointer of the last node points to the first
node.
Doubly Linked List as Circular
• In doubly linked list, the next pointer of the last node points to the first
node and the previous pointer of the first node points to the last node
making the circular in both directions.