ANTs interview question

How to find a loop in a linked list

Interview Answer

Anonymous

24 Aug 2010

two pointers, one going one link at a time and one going twice. Fairly common and known problem. Told them I already knew it.