Skip to content

Commit f11b324

Browse files
committed
Time: 114 ms (97.18%), Space: 18.9 MB (75.55%) - LeetHub
1 parent e92cb7e commit f11b324

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from operator import xor
2+
from functools import reduce
3+
class Solution:
4+
def singleNumber(self, nums: List[int]) -> int:
5+
return reduce(xor, nums)
6+

0 commit comments

Comments
 (0)