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 e92cb7e commit f11b324Copy full SHA for f11b324
0136-single-number/0136-single-number.py
@@ -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