Aktiver Arbeitgeber
Swapping integers without using additional space
Anonym
a= a(xor)b, b= a(xor)b, a=a(xor)b
a = a + b; b = a - b; a = a - b;
Doesn't work if a and b are 32 bit integer. We might have over flow in a+b. a(xor)b will not have any overflow
Verschaffe dir einen Vorsprung bei Chancen und Insider-Tipps, indem du deinem Traumunternehmen folgst.
Erhalte personalisierte Jobempfehlungen und Updates, indem du Suchanfragen startest.