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