You are viewing a single comment's thread. Return to all comments →
While it is a brilliant solution, it's also a standard and classic one. https://en.wikipedia.org/wiki/Cycle_detection#Tortoise_and_hare. People may be more interested in unorthodox solutions.
Seems like cookies are disabled on this browser, please enable them to open this website
Linked Lists: Detect a Cycle
You are viewing a single comment's thread. Return to all comments →
While it is a brilliant solution, it's also a standard and classic one. https://en.wikipedia.org/wiki/Cycle_detection#Tortoise_and_hare. People may be more interested in unorthodox solutions.