Question d’entretien chez Jump Trading

Swap two variables without using a temp.

Réponses aux questions d'entretien

Utilisateur anonyme

19 sept. 2012

in c/c++: x^=y^=x^=y;

4

Utilisateur anonyme

11 févr. 2016

a= a*b; b = a/b; a = a/b;

2

Utilisateur anonyme

24 nov. 2017

+/- is correct even with overflow

Utilisateur anonyme

8 nov. 2012

You don't want to use +-/* as you might face under/overflow.

Utilisateur anonyme

11 avr. 2012

Can be done using adding/subtracting, multiply/divide, xor.