FJA-US interview question

Given X and Y, swap the values without using a temporary third variable.

Interview Answer

Anonymous

1 Aug 2016

How you think of this problem is more important than coming up with the right answer, so do not hesitate to jot down your though process on paper while explaining it to the interviewers.