Pergunta de entrevista da empresa Visium

What is the difference between K-Means and KNN algorithms, in which situations would they be applicable?