You are given an integer array nums.
Your task is to determine whether any value appears more than once in the array.
If any element occurs at least twice, return true.
If every element is distinct, return false.
Input: nums = [5, 8, 12, 5]
Output: true
Input: nums = [10, 20, 30, 40]
Output: false
Input: nums = [7, 7, 9, 11, 9, 13, 14]
Output: true
Accepted:
Submission: