how to give custom input for this problem
How to give custom input for this
hey @guptanikhil898 follow these steps:
- Form linear linked list and store last node in some pointer(say tail)
- start traversing from head, and store pointer of any particular node in tail->next.
This creates a cycle in your linkedlist.