Practice Problem
Find the Duplicate Number
Difficulty: Medium
Given an array of n + 1 integers where each integer is in the range [1, n], find the one duplicate number without modifying the array and using only constant extra space.
Practice Problem
Difficulty: Medium
Given an array of n + 1 integers where each integer is in the range [1, n], find the one duplicate number without modifying the array and using only constant extra space.