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 f291ae8 commit 80a35dfCopy full SHA for 80a35df
contains-duplicate/JisuuungKim.py
@@ -0,0 +1,11 @@
1
+class Solution:
2
+ def containsDuplicate(self, nums: List[int]) -> bool:
3
+ count = {}
4
+
5
+ for i in nums:
6
+ if i in count:
7
+ return True
8
+ else:
9
+ count[i] = 1
10
11
+ return False
0 commit comments