Last updated 2 years ago
class Solution: def containsDuplicate(self, nums: List[int]) -> bool: S = set(nums) return len(S) != len(nums)