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 6d8c598 commit f74db69Copy full SHA for f74db69
contains-duplicate/sun912.py
@@ -1,3 +1,7 @@
1
+"""
2
+ Time complexity: O(n)
3
4
+
5
class Solution:
6
def containsDuplicate(self, nums: List[int]) -> bool:
7
nums_set = set(nums)
0 commit comments