Question d’entretien chez Gemalto

How to swap 2 variables without using a third variable. And the team leader asked to write a code snippet for assigning 5 colors to the countries on the world map so that no adjacent country has same color.

Réponses aux questions d'entretien

Utilisateur anonyme

28 janv. 2016

Use XOR

Utilisateur anonyme

11 août 2014

x = x + y; y = x - y; x = x - y;

7