We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48ae753 commit 7c06a89Copy full SHA for 7c06a89
M_2433_FindTheOriginalArrayofPrefixXor.java
@@ -0,0 +1,8 @@
1
+class Solution {
2
+ public int[] findArray(int[] pref) {
3
+ for(int i=pref.length-1; i>0 ;i--){
4
+ pref[i] = pref[i-1]^pref[i];
5
+ }
6
+ return pref;
7
8
+}
0 commit comments