Circular Link List

How to make list circular in input

Hi @sahil.gupta680
just make the list circular in nature
a circular linked list is very easy and almost similar to linear linked list implementation, with the only difference being that, in circular linked list the last Node will have it’s next point to the Head of the List. In Linear linked list the last Node simply holds NULL in it’s next pointer. Hope you will understand!

Yes I understood that even i knew that its not the case all ways that last node with point to first node to be circular is above given question and example the last node is connected to second node for being circular so do i fix that where i need to connect for circular or its always index first because if it is its very simple just tail.next=head for circular and then tail .next=null to break it.:slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.