Skip to content

Commit 124f26a

Browse files
week 1: contains duplicate
1 parent 7c26d77 commit 124f26a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def containsDuplicate(self, nums: List[int]) -> bool:
3+
return len(set(nums)) != len(nums)

0 commit comments

Comments
 (0)