class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
#if not nums:return False
d=dict()
for x in nums:
if x not in d:
d[x]=1
else:
return True
return False