Amazon interview question

I was asked to implement KNN using numpy.

Interview Answer

Anonymous

5 Mar 2022

First I implemented brute force solution by going over all the the input signals and compared them to all the gallery signals. Then, I implemented it more efficiently by utilizing matrix multiplications.