Can you tell my mistake?
Actually I was trying to apply flyods cycle approach. pos is the position from which the cycle is beginning,if pos=2, this means that the last node of linked list will point to the 2nd element of the list.
First I made a cyclic list, and then I tried to print back the original list.
check now->
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.