DEV Community

Discussion on: Swapping two numbers, w/o a temp variable

Collapse
 
peledzohar profile image
Zohar Peled

Totally agree. Interview tricks should never find their way into production code. In fact, I think that's one of the worst problems in software development technical interviews today - the fact that the problems asked and the solutions expected are in no way applicable in real world situations.

Collapse
 
hakash profile image
Morten Olsrud

Couldn't agree more, but because they do, and because we love Code Wars and similar code quiz sites, discussing these tricks are still needed, and for me at least, fun šŸ˜Š

Thread Thread
 
peledzohar profile image
Zohar Peled

Yeah, it is fun.