DEV Community

Discussion on: Terrible interview question: Swap variables without a temporary

Collapse
 
alexkindle profile image
Alex

I love getting interview questions like swap without a temporary variable, because it is an extremely strong signal (as an interviewee) that you should absolutely not work at this company.

Collapse
 
bovermyer profile image
Ben Overmyer

This is the correct answer.

Collapse
 
lazarljubenovic profile image
Lazar Ljubenović

That's a win-win situation, then! Companies that ask you to think about a problem, and you refuse to do so because you believe it's not a good question, might not want you working for them either.