DEV Community

Discussion on: How can you swap two variables without using a third?

Collapse
 
kspeakman profile image
Kasey Speakman

This is your first step in becoming a Computer Scientist!

I think I must have skipped a few steps. The only occasion I've had to use such tricks is when playing Zachtronics games like TIS-100 or Shenzhen IO. I hope you are interviewing for embedded systems programmers. ;-)