We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b793e1 commit 3fb2263Copy full SHA for 3fb2263
136-Single-Number.py
@@ -0,0 +1,6 @@
1
+class Solution:
2
+ def singleNumber(self, nums: List[int]) -> int:
3
+ res = 0
4
+ for n in nums:
5
+ res = n ^ res
6
+ return res
0 commit comments