Skip to content

Commit 0a89e70

Browse files
committed
contains duplicate solution
1 parent 4914619 commit 0a89e70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contains-duplicate/yayyz.py

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

0 commit comments

Comments
 (0)