DEV Community

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

Collapse
 
theoutlander profile image
Nick Karnik

That's true. My initial solution to it was using addition/subtraction and once I got the concept of diffs, I was able to deduce a solution using bit manipulation.