Find the repeated integer in an array where numbers are in a known range.
Constraints
Example
>>> find_duplicate([2, 1, 3, 1]) 1 >>> find_duplicate([3, 1, 3, 4, 2]) 3 >>> find_duplicate([1, 2, 2, 3, 3]) 2 >>> find_duplicate([1, 1]) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints