Skip to content

Commit 2af2101

Browse files
Create 2433.py
1 parent 10a2a22 commit 2af2101

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

2001-2500/2433.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)