text: # Contains Duplicate
  """
  hashset to get unique values in array, to check for duplicates easily;
  leetcode link: https://leetcode.com/problems/contains-duplicate/
  """
  class Solution:
      def containsDuplicate(self, nums: List[int]) -> bool:
          hashset = set()
          
          for n in nums:
              if n in hashset:
                  return True
              hashset.add(n)
          return False
  