Domanda di colloquio di 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.

Risposte di colloquio

Anonimo

28 gen 2016

Use XOR

Anonimo

11 ago 2014

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

7