4 ms·
I used this trick in a sorting pancakes contest. Flipping a list of pancakes required only one XOR, whatever the size. Very nice trick.
by jcmeyrignac 6y ago
I used this trick in a sorting pancakes contest.
Flipping a list of pancakes required only one XOR, whatever the size. Very nice trick.