Is this your company?
find a loop in a list
Anonymous
use two iterators, one iterates the list one at a time, the other iterates two items at a time. If there is a loop in the list, these two iterators will cross path at some point.
Check out your Company Bowl for anonymous work chats.