Skip to content

Commit

Permalink
Time: 645 ms (96.22%), Space: 35.8 MB (79.68%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
hovanhoa committed Oct 31, 2023
1 parent c339bbe commit 331bfd6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Solution:
def findArray(self, pref: List[int]) -> List[int]:
return [pref[0]] + [pref[i] ^ pref[i-1] for i in range(1, len(pref))]

0 comments on commit 331bfd6

Please sign in to comment.