Skip to content

Commit f74db69

Browse files
committed
Time complexity added
1 parent 6d8c598 commit f74db69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contains-duplicate/sun912.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Time complexity: O(n)
3+
"""
4+
15
class Solution:
26
def containsDuplicate(self, nums: List[int]) -> bool:
37
nums_set = set(nums)

0 commit comments

Comments
 (0)