#=================================== # Tanzila Islam # Email: tanzilamohita@gmail.com # Language: Python 3 #=================================== class Solution: def containsDuplicate(self, nums: List[int]) -> bool: set_nums = set(nums) if len(nums) != len(set_nums): return 1 else: return 0
No comments:
Post a Comment