Contains Duplicate
Given an integer array `nums`, return true if any value appears at least twice, and false if every element is distinct.
Examples
in: nums = [1,2,3,1]
out: true
1 repeats
in: nums = [1,2,3,4]
out: false
all distinct
Constraints
- 0 <= len(nums) <= 10^5
- -10^9 <= nums[i] <= 10^9
Hints