[LeetCode] 217. Contains Duplicate
Python
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
if len(nums) == len(set(nums)):
return False
else:
return True
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
if len(nums) == len(set(nums)):
return False
else:
return True
댓글남기기