I was contacted by a recruiter and we had an informal chat about LinkedIn and what i am looking for. He was very relaxed and explained in detail. I just had my first interview. I am waiting for feedback and hopefully tons of interviews.
public interface PointsOnAPlane {
/**
* Stores a given point in an internal data structure
*/
void addPoint(Point point);
/**
* For given 'center' point returns a subset of 'm' stored points that are
* closer to the center than others.
*
* E.g. Stored: (0, 1) (0, 2) (0, 3) (0, 4) (0, 5)
*
* findNearest(new Point(0, 0), 3) -> (0, 1), (0, 2), (0, 3)
*/
Collection<Point> findNearest(Point center, int m);
}