Amazon Interview Question

Pick the closest k points.

Interview Answers

Anonymous

May 31, 2016

Using priorityQueue

1

Anonymous

Jul 25, 2016

Is this about points in the euclidean plane, looking for the closest points to a particular point? Yeah, I guess adding them all to a priority queue and popping the first k would do it. If you are looking for the tightest k-cluster then it's not very easy as an interview question.

Anonymous

Nov 7, 2016

For the group interview how did you prepare?