Implement K-Means Clustering from Scratch
Asked at Coinbase · ML Fundamentals & Algorithms · Difficulty: Medium · Last asked Feb 8, 2026
K-means is the standard algorithm for splitting points into K groups by distance. Implement it from scratch for a given set of starting centers, so that the result is deterministic.
Loading the problem…
More Coinbase interview questions
- Design Coinbase Explore Real-Time Price Dashboard
- Flappy Bird Controller: Decide When to Jump
- Design a Multi-Chain Crypto Ledger & Wallet History
- Design a Credit-Approval Risk Engine
- Baseline Classifier on a Messy Tabular Dataset
- MLE Onsite - Domain Round (ML Coding + SQL Window Function)