Interview Question

Revision en1, by rahul_1234, 2017-05-19 00:18:43

Given a set of restaurants (the number being quite large) and its geographical location(x,y) , you are allowed to do an significant amount of pre-processing on it. Now suppose there are x customers located at position (s,t), design an efficient algorithm to find the k nearest restaurants to these customers.

Tags #interview, k nearest

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rahul_1234 2017-05-19 00:18:43 331 Initial revision (published)