K-Means Clustering Implementation
Waymo interview questions · Hard · Phone Screen round · reported 2× · 4 tests
Cluster 2D points by repeatedly assigning to the nearest centroid and recomputing means.
The full question, tests and reference solution are available with a plan that includes Waymo.
Run your code with Ctrl+Enter to see results.