DEV Community

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

Collapse
 
jdsteinhauser profile image
Jason Steinhauser

Someone has already posted my XOR solution 😄 this is one we occasionally ask in interviews, and it's one of my favorite abstract problems