1720. Decode XORed Array
LeetCode 1720. Decode XORed Array
Description
Input: encoded = [1,2,3], first = 1
Output: [1,0,2,1]
Explanation: If arr = [1,0,2,1], then first = 1 and encoded = [1 XOR 0, 0 XOR 2, 2 XOR 1] = [1,2,3]Input: encoded = [6,2,7,3], first = 4
Output: [4,2,0,7,4]Tags
Solution

Complexity
Code
Reference
Last updated