Empleador activo
Swapping integers without using additional space
Anónimo
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
Sigue a tus empresas favoritas para estar al tanto de las últimas oportunidades y disponer de información desde adentro.
Recibe recomendaciones y actualizaciones personalizadas al iniciar tu búsqueda.