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 10a2a22 commit 2af2101Copy full SHA for 2af2101
2001-2500/2433.py
@@ -0,0 +1,8 @@
1
+class Solution:
2
+ def findArray(self, pref: List[int]) -> List[int]:
3
+ prev = pref[0]
4
+ for i in range(1,len(pref)):
5
+ pref[i]^=prev
6
+ prev^=pref[i]
7
+ return pref
8
+
0 commit comments