It’s only a linear linked list. The fast and slow pointer method wont work in this case. It needs to have a cycle actually. Please help.
How can this problem be solved using Floyd Cycle method?
@Doctor_Insult hey,isme hme yhi btana hai ki woh linked list me cycle hai ki nhi agr cycle hogi to ek node jo hai ek se jada node ki next pointer hogi to is method se ap ye find krrhe ho ki cycle hai ki nhi.
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.