Pregunta de entrevista de Adobe

Swap 2 integers without using a temp variable.

Respuestas de entrevistas

Anónimo

4 de feb de 2016

He asked me to come up with a method other than bit manipulation.

Anónimo

8 de feb de 2016

public void swap(int x, int y) { x = x + y; y = x - y; x = x - y; }