K-Nearest Neighbors

From HackerRank. KNN classification via Euclidean distance. Solve the geometry problem "K-Nearest Neighbors".

Examples
Input: [1,2,3]
Output: 0
Hints

K-Nearest Neighbors

**From HackerRank.** KNN classification via Euclidean distance. Solve the geometry problem "K-Nearest Neighbors".