Get contacted by recruiters directly with our newest chat feature!
Register now or log in to join your professional community.
//swapping x and y
x = x + y;
y = x - y;
x = x - y;
Using the XOR swap algorithm
Good, any other solution? :D
Cancel Report Answer