DrawCode

Closest Pair of Points

Split the plane by x, recurse on halves, then check only a narrow vertical strip near the split line.

Browse free without an account. Sign in to save progress, sync likes, and open your canvas workspace.