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 ea9d6c0 commit a2f5247Copy full SHA for a2f5247
contains-duplicate/kayden.py
@@ -0,0 +1,4 @@
1
+class Solution:
2
+ def containsDuplicate(self, nums: List[int]) -> bool:
3
+ unique_nums = set(nums)
4
+ return len(unique_nums) != len(nums)
0 commit comments