For a new given problem, from memory pick most similar ones and use that as or for solution.
When there are more dimensions involved like distance problem, we simply adapt NN to k dimensions. Note k refers to no of neighbors, not no of dimensions.
Tying shoe laces.