0
how to find a loop in linked list.....easy way
floyd's cycle algorithm is the best way to find the loop. but the complete structure .with theory I'm unable to get that???.
1 Resposta
+ 2
I hope you can find your answer here:
https://www.geeksforgeeks.org/detect-loop-in-a-linked-list/
OR
https://java2blog.com/how-to-detect-loop-in-linkedlist-in/