...

/

Challenge: Missing Number in Sorted Array

Challenge: Missing Number in Sorted Array

In this lesson, you will solve the challenge of calculating the missing number in a sorted array.

Missing number in sorted array

Suppose that you are given an array of contiguous integers starting from 1 to n, with one integer missing at any position in the array.

Have a look at the following illustration: ...