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.
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.
Access this course and 1400+ top-rated courses and projects.