4. Contains Duplicate
Determine whether the integer array nums contains any duplicate values.
Contoh 1:
Input: nums = [1,2,3,1] Output: true
Contoh 2:
Input: nums = [1,2,3,4] Output: false
Batasan:
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