Challenge: Find The Closest Number
In this lesson, we will solve a challenge on finding the closest number to a given number in an array.
We'll cover the following
Closest Number
In any given sorted array, the closest number to a given number is the one who’s absolute difference is closest to zero from the given number.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.