Skip to content

Commit 2a95426

Browse files
committed
Update solution 137 [Python3]
1 parent c0ddeb7 commit 2a95426

File tree

1 file changed

+9
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)