Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1720. Decode XORed Array
Given encoded where encoded[i] = arr[i] XOR arr[i+1] and the first element arr[0] = first, reconstruct the original array by iteratively using XOR to recover each next element (arr[i+1] = arr[i] XOR encoded[i]).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.