Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #94 from Mayank662/0217_Contains_Duplicate
Browse files Browse the repository at this point in the history
Create 0217_Contains_Duplicate.py
  • Loading branch information
vJechsmayr committed Oct 1, 2020
2 parents 0ccb026 + 22ace09 commit 8ee59a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LeetCode/0217_Contains_Duplicate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
Set=set(nums)
if len(Set)==len(nums):
return False
else:
return True

0 comments on commit 8ee59a0

Please sign in to comment.