Question DSA-ARR-0012
MediumWhat is the time complexity of finding the missing number in an array containing n − 1 distinct numbers from 1 to n, using the sum formula?
- A.
O(n²)
- B.
O(1)
- C.
Sign up free to see the answer and a step-by-step explanation.