Back
Construct a permutation where each value XORed with a later value equals the index. Core idea: direct all XOR results to the last position.
algorithm
codeforces
construction
bit manipulation