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
Run your code with Ctrl+Enter to see results.