Easy cpp solution(a^b=c then a^c=b)
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n(a^b=c then a^c=b)\n\n# Complexity\n- Time complexity:\n Add your time co
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n(a^b=c then a^c=b)\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> findArray(vector<int>& nums) {\n        vector<int>arr;\n        arr.push_back(nums[0]);\n        for(int i =0; i<nums.size()-1; i++){\n            arr.push_back(nums[i]^nums[i+1]);\n        }\n        return arr;\n    }\n};\n```
['C++']