Implement K-Means in NumPy or PyTorch
Problem overview from a real Apple interview:
Use a vectorized Lloyd algorithm on an NxD matrix for this Apple ML problem. Compute broadcasted pairwise distances to return K centroids and labels.
Check more interview questions and experiences about Apple
