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 ee1ad8e commit 6d1ee5aCopy full SHA for 6d1ee5a
contains-duplicate/hajunyoo.py
@@ -0,0 +1,6 @@
1
+class Solution:
2
+ def containsDuplicate(self, nums: List[int]) -> bool:
3
+ string_len = len(nums)
4
+ set_len = len(set(nums))
5
+
6
+ return string_len != set_len
0 commit comments