Question d’entretien chez Adobe

Swap 2 integers without using a temp variable.

Réponses aux questions d'entretien

Utilisateur anonyme

4 févr. 2016

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

Utilisateur anonyme

8 févr. 2016

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