ParentFull threadjcmeyrignac·I used this trick in a sorting pancakes contest. Flipping a list of pancakes required only one XOR, whatever the size. Very nice trick.View on HN