The Life of a Programmer

Terrible interview question: Swap variables without a temporary

“Clever programming tricks have no place in programming interviews. They usually involve a small amount of code and solve an innocent-sounding question like “find the loop in a linked list”. Often unfair constraints are added, such as “you may not use the language’s search functions”. They follow a general pattern of being highly specific and easily searchable. Yet they aren’t something that can be solved within an interview. These are research level questions that require random prior knowledge, lucky leaps of intuition, or a lot of interviewer prompting.”

This article has been moved to Interview.Codes.

Sorry, but I have no way to do an auto-redirect on WordPress.com. They also don’t allow canonical-url, so I can’t keep it here as well. 😞