← Back
00:00

Closest Point Pair

Citadel interview questions · Medium · Coding round · 6 tests

Given a list of points in the 2D plane, return the minimum Euclidean distance between any two distinct points.

Interface

closestPairDistance(points: Array<[number, number]>): number

Rules

Idle