Recently I read a blog post about the supposedly worst programming interview question. So here is the question:
Write a function that can detect a cycle in a linked list.
Basically the guy that asked the question was testing of whether you've heard of Floyd's cycle-finding algorithm (aka. the tortoise …