Aktiver Arbeitgeber
Swap 2 integers without using a temp variable.
Anonym
He asked me to come up with a method other than bit manipulation.
public void swap(int x, int y) { x = x + y; y = x - y; x = x - y; }
Verschaffe dir einen Vorsprung bei Chancen und Insider-Tipps, indem du deinem Traumunternehmen folgst.
Erhalte personalisierte Jobempfehlungen und Updates, indem du Suchanfragen startest.