...

/

Challenge: Missing Number in a Sorted List

Challenge: Missing Number in a Sorted List

In this lesson, we will solve a challenge on how to find the missing number in a sorted list.

Missing number in sorted list

Suppose that you are given an array of contiguous integers starting from 1 to n, with one integer missing in the middle, like so:

Problem statement

Given a list of contiguous integers starting from 1 (with one missing integer ...