Skip to content

Commit c0ddeb7

Browse files
committed
Update solution 136 [Python3]
1 parent 6460860 commit c0ddeb7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Solution:
2+
def singleNumber(self, nums):
3+
"""
4+
:type nums: List[int]
5+
:rtype: int
6+
"""
7+
res=0
8+
for i in nums:
9+
res = res^i
10+
return res

0 commit comments

Comments
 (0)