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 9aefc67 commit 0d6efd4Copy full SHA for 0d6efd4
contains-duplicate/Sung-Heon.py
@@ -0,0 +1,9 @@
1
+class Solution:
2
+ def containsDuplicate(self, nums: List[int]) -> bool:
3
+ temp = {}
4
+ for i in nums:
5
+ if temp.get(i):
6
+ return True
7
+ else:
8
+ temp[i] = True
9
+ return False
0 commit comments