News for hackers. Stuff that matters.
Re:Interviewing for a JavaScript Job by defen on Sunday February 22, 2015 @09:37PM (#9092266)
That's a really cool solution. One potential problem is that it doesn't find the loop as soon as possible (e.g. if it's going around the perimeter of a square, the cycle is detectable after 4N steps, but the algorithm will take N^2 steps to realize that)

There are no comments on this comment yet.