Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution:
- def containsDuplicate(self, nums: List[int]) -> bool:
- return len(set(nums)) != len(nums)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement