Skip to content

Commit 36ffedd

Browse files
committed
feat: add 0217 Contains Duplicate solution
1 parent 53ce7c7 commit 36ffedd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contains-duplicate/hyogshin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution:
2+
def containsDuplicate(self, nums: List[int]) -> bool:
3+
if len(nums) == len(set(nums)):
4+
return False
5+
else:
6+
return True
7+

0 commit comments

Comments
 (0)