Loading...
An array nums of n+1 integers in [1,n] has exactly one duplicate. Find it without modifying the array and using O(1) extra space.
nums