Pergunta de entrevista da empresa TikTok

implementing K-means clustering from scratch and handling empty cluster edge cases