Clustering
CodeChefOpen on judge ↗
Given $n$ points on a plane and an integer $k$, compute the largest possible value of $d$ such that the given points can be partitioned into $k$ non-empty subsets in such a way that the distance between any two points from different subsets is at least $d$. ###Input: The first line contains the number $n$ of points. Each of the following $n$ lines defines a point $(x_i, y_i)$ (both $x_i$ and $y_
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start