AI Features

Find the Closest Number

In this lesson, you will learn how to find the closest number to a target number in Python.

In this lesson, we will be given a sorted array and a target number. Our goal is to find a number in the array that is closest to the target number. We will be making use of a binary search to solve this problem, so make sure that you have gone through the previous lesson.

The ...