Pergunta de entrevista da empresa Desquared

Consider two variables x, y. Swap their data without using a third varaible.

Resposta da entrevista

Sigiloso

1 de jun. de 2023

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