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 d64c4ae commit c527927Copy full SHA for c527927
contains-duplicate/jeldo.py
@@ -0,0 +1,4 @@
1
+class Solution:
2
+ # O(n)
3
+ def containsDuplicate(self, nums: list[int]) -> bool:
4
+ return len(nums) != len(set(nums)) # O(n)
0 commit comments