Question DSA-ARR-0019
HardHow can you find the duplicate in an array of n + 1 integers in the range 1..n without modifying it and using O(1) extra space?
- A.
Sort the array
- B.
Use a hash set
- C.
Sign up free to see the answer and a step-by-step explanation.