3 ms·
This should also be possible with [XOR swap](https://en.wikipedia.org/wiki/XOR_swap_algorithm https://en.wikipedia.org/wiki/XOR_swap_algorithm), though you need
by throwawayk7h 9mo ago
This should also be possible with [XOR swap](https://en.wikipedia.org/wiki/XOR_swap_algorithm https://en.wikipedia.org/wiki/XOR_swap_algorithm), though you need to do three passes.