Microsoft Interview Question

The question is to implement the pick k nearest items from a database. Give some acceleration tips for the situation.

Interview Answer

Anonymous

May 18, 2017

Coding online in cpp. First get the Euclid distance of each items, then return the idx of the first k elements.