class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
return len(set(nums)) != len(nums)
class Solution:
def containDuplicate(self,nums:List[int]) ->bool:
return len(set(nums)) != len(nums)
2023-10-23 14:56:10
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
return len(set(nums)) != len(nums)
class Solution:
def containDuplicate(self,nums:List[int]) ->bool:
return len(set(nums)) != len(nums)