3 ms·
I have actually passed an interview where a misuse of the swap trick was part of the "what's wrong with this piece of code" question. Maybe this is similar to "
by praptak 14y ago
I have actually passed an interview where a misuse of the swap trick was part of the "what's wrong with this piece of code" question. Maybe this is similar to "have you seen this trivia question before" but reverted: "can you spot this idiotic trick that causes bugs", which I believe is much more valuable.