3 ms·
xor is the solution that uses the least storage I heard a variation of that question that began "using the least possible storage space...", with the goal bein
by fsk 11y ago
xor is the solution that uses the least storage
I heard a variation of that question that began "using the least possible storage space...", with the goal being to find the xor solution.
The arithmetic solution also has problems when you overflow an integer, although that matters more if your CPU has 16 bit ints.