Skip to content

Commit 80a35df

Browse files
committed
contain duplicate solution
1 parent f291ae8 commit 80a35df

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

contains-duplicate/JisuuungKim.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)