# 2433. Find The Original Array of Prefix Xor ###### tags: `Leetcode` `Medium` `Bit Manipulation` `Prefix Sum` Link: https://leetcode.com/problems/find-the-original-array-of-prefix-xor/ ## Code ```java= class Solution { public int[] findArray(int[] pref) { int n = pref.length; for(int i=n-1; i>=1; i--){ pref[i] ^= pref[i-1]; } return pref; } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up