Learn how the KNN algorithm works for classification and regression. Understand distance metrics and choosing the right K value.