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 480b937Copy full SHA for 480b937
contains-duplicate/dm.py
@@ -0,0 +1,6 @@
1
+from typing import List
2
+
3
4
+class Solution:
5
+ def containsDuplicate(self, nums: List[int]) -> bool:
6
+ return len(nums) != len(set(nums))
0 commit comments