Python, C++,Java||Faster than 100%||Simple-Short-Solution||Easy To Understand
Please upvote to motivate me in my quest of documenting all leetcode solutions. HAPPY CODING:)\nAny suggestions and improvements are always welcome.\n___\n__\nQ
***Please upvote to motivate me in my quest of documenting all leetcode solutions. HAPPY CODING:)\nAny suggestions and improvements are always welcome*.**\n___________________\n_________________\n***Q2433. Find The Original Array of Prefix Xor***\n____________________________________________________________________________________________________________________\n____________________________________________________________________________________________________________________\n\u2705 **Python  Code** :\n```\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        for i in range(len(pref)-1,0,-1):\n            pref[i]^=pref[i-1]\n        return pref\n```\n____________________________________________________________________________________________________________________\n____________________________________________________________________________________________________________________\n\n\u2705 **Java Code** :\n```\nclass Solution {\n    public int[] findArray(int[] pref) {\n        for(int i=pref.length-1;i>0;--i)\n            pref[i]^=pref[i-1];\n        return pref;\n    }\n}\n```\n\n____________________________________________________________________________________________________________________\n____________________________________________________________________________________________________________________\n\u2705 **C++  Code** :\n```\nclass Solution {\npublic:\n    vector<int> findArray(vector<int>& pref) {\n        for(int i=pref.size()-1;i>0;--i)\n            pref[i]^=pref[i-1];\n        return pref;\n    }\n};\n```\n____________________________________________________________________________________________________________________\n____________________________________________________________________________________________________________________\nIf you like the solution, please upvote \uD83D\uDD3C\nFor any questions, or discussions, comment below. \uD83D\uDC47\uFE0F\n
['C', 'Python', 'Java']