Concept Flow - Circular linked list
Create new node
Is list empty?
No→Find last node (node.next == head)
| Yes
Set new node.next = new node (points to itself)
If not empty: last node.next = new node
Update head if needed
Done - list is circular
This flow shows how a new node is added to a circular linked list, either creating a single-node circle or linking it at the end to maintain circularity.