Advertisement
aero2146

Contains duplicate

Dec 23rd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. class Solution:
  2.     def containsDuplicate(self, nums: List[int]) -> bool:
  3.         return len(set(nums)) != len(nums)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement