Return `true` if any value appears at least twice in `nums`. Variant **#2**.
Example 1
Input: nums = [2,3,4,0,1,2]
Output: true
Constraints
Acceptance: 64% · Topics: hash-table, array
← All practice problems