4. Contains Duplicate
Determine whether the integer array nums contains any duplicate values.
Example 1:
Input: nums = [1,2,3,1] Output: true
Example 2:
Input: nums = [1,2,3,4] Output: false
Constraints:
1 <= nums.length <= 10^5
Determine whether the integer array nums contains any duplicate values.
Input: nums = [1,2,3,1] Output: true
Input: nums = [1,2,3,4] Output: false
1 <= nums.length <= 10^5