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 f6e158e commit 2206296Copy full SHA for 2206296
contains-duplicate/do-heewan.py
@@ -0,0 +1,7 @@
1
+class Solution:
2
+ def containsDuplicate(self, nums: List[int]) -> bool:
3
+ sets = set(nums)
4
+
5
+ if len(nums) != len(sets):
6
+ return True
7
+ return False
0 commit comments