We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The Floyd's cycle finding algorithm...
I have another solution using Stephen Ostermiller's algorithm which also completes in linear time like the Floyd's.
Linked Lists: Detect a Cycle
You are viewing a single comment's thread. Return to all comments →
The Floyd's cycle finding algorithm... I have another solution using Stephen Ostermiller's algorithm which also completes in linear time like the Floyd's.