Loading...
Engaged Employer
find cycle in linked list
Anonymous
Floyd's cycle finding algorithm
Two pointers. One is faster and jumps 2 nodes at a time. Another 1 node at a time. They are guaranteed to meet if there is a cycle.
two pointers
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.