If I have a rectangle of random size and it has random dots in it.( = Rectangle A)
I want to take a rectangle that's inside A to cover as many dots as possible.
Is there any possible way of doing this without going bruteforce: iterating through all the dots and use them as a corner of the rectangle only saving the one with most dots in it?