Question DSA-ARR-0069
HardAn array of n integers contains every number from 1 to n + 1 except one. Which O(1)-space method finds the missing one without overflow risk?
- A.
Sort the array
- B.
Sum with 32-bit integers
- C.
Sign up free to see the answer and a step-by-step explanation.