<p>all things said and done, the funniest interview answer i've given was for that old classic:</p><p>"how do you find a loop in a linked list"</p><p>the answer is simple: free every item in the list, and if there's a segfault, there's a loop</p>