1734. Decode XORed Permutation
Description
**Input:** encoded = [3,1]
**Output:** [1,2,3]
**Explanation:** If perm = [1,2,3], then encoded = [1 XOR 2,2 XOR 3] = [3,1]**Input:** encoded = [6,5,4,6]
**Output:** [2,4,1,5,3]ac
Last updated