Elegant MicroWeb Interview Question

Swap 2 numbers without using third variable.

Interview Answer

Anonymous

Aug 9, 2015

x = x + y; y = x - y; x = x - y; This was my solution without using XOR operator.

1