DSA Advanced Problems

Decode XORed Permutation

Recover an odd-length permutation from the XOR of each adjacent pair.