Leetcode 1720. Decode XORed Array
Problem Description
We are given with encoded array, which is XOR of continuous elements of original array i.e encoded[i] = array[i] ^ array[i+1], and we are also given first element of array.. we need to find the original array.
Examples:
Input: enc...
blog.sarathchandra.me2 min read