You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Solve Missing Number by sorting and comparing indices
After sorting the array in ascending order, we compare each index `i` with `nums[i]` to find the missing number.
The time complexity is O(n log n) due to the sorting step.
We might revisit this problem later to explore a more optimal O(n) solution with constant extra space.
0 commit comments