Skip to content

Commit

Permalink
Q2433 added.
Browse files Browse the repository at this point in the history
  • Loading branch information
isinsuarici committed Mar 1, 2023
1 parent 48ae753 commit 7c06a89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions M_2433_FindTheOriginalArrayofPrefixXor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Solution {
public int[] findArray(int[] pref) {
for(int i=pref.length-1; i>0 ;i--){
pref[i] = pref[i-1]^pref[i];
}
return pref;
}
}

0 comments on commit 7c06a89

Please sign in to comment.