4. Contains Duplicate
Determine whether the integer array nums contains any duplicate values.
範例 1:
輸入: nums = [1,2,3,1] 輸出: true
範例 2:
輸入: nums = [1,2,3,4] 輸出: false
限制條件:
1 <= nums.length <= 10^5
Determine whether the integer array nums contains any duplicate values.
輸入: nums = [1,2,3,1] 輸出: true
輸入: nums = [1,2,3,4] 輸出: false
1 <= nums.length <= 10^5