Detecting cycles

https://www.codeeval.com/open_challenges/5/
this is the link to the question. I don't want you to solve it. Just direct me. Thanks in advance
Topic archived. No new replies allowed.