Circular Linked List

The last node points back to the first node, forming a circle.

10
0xc1
20
0xc2
30
0xc3
40
0xc4
50
0xc5
NULL
Length: 5Status: Ready for Circular operations.
Step: 0 / 0
Speed

Algorithm Logic

1function insertHead(val):
2 newNode = new Node(val)
3 if !head:
4 newNode.next = newNode
5 else:
6 newNode.next = head
7 tail.next = newNode
8 head = newNode

Insert

Delete

Operations