Create a function to perform k-means clustering on a dataset and return the cluster centers.
HardProblem Statement
Create a function to perform k-means clustering on a dataset and return the cluster centers.
Sample Input
Data: x y 1 1 2 2 2 3 3 3 4 4 8 7 5 9 8 6 10 9
Sample Output
Cluster Centers: x y 1 9 8 2 2 3
Limits
Time: 2s · Memory: 256 MB