Back to problems

Missing Number

Algorithm · Oracle · Easy

Coding Question: Missing Number You are given an array nums with n different values selected from the inclusive range [0, n]. Since that range contains n + 1 values while the array contains only n of them, one value is absent. Determine which number does not appear in the array. Input Format The first line provides n, the number of elements in the array. The second line provides n distinct integers that make up nums. Output Format Print the single missing integer.…

Checking your access…