Asked during an interview.
We are given N points on a 2-D plane x[0],y[0].......x[n-1],y[n-1]
and an integer K.
We need to find the minimum area Square,having integer coordinates as vertices with sides parallel to coordinate axis. enclosing atleast K of the given N points, with no point lying on the boundary of the square, i.e all K points should be strictly inside the square.
I thought of classical minimum enclosing-rectangle problem, but couldn't derive the case for at least K points. How to approach this? Thanks in advance.