An array of n+1 numbers in 1..n has one repeated value. Find it without modifying the array and with O(1) extra space.
An array of n+1 numbers in 1..n has one repeated value. Find it without modifying the array and with O(1) extra space.
Opens with the full question.