Challenge: Closest Points

Solve the Closest Points Problem.

We'll cover the following

Problem


Closest Points Problem

Find the closest pair of points in a set of points on a plane.

Input: A list of nn points on a plane.

Output: The minimum distance between a pair of these points.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.