in reply to Re^2: Tricky math problem ...
in thread Tricky math problem ...

Example: if the (x_i,y_j) is at (3,4) than the area between (1,1) and (3,4) can be filled with square o=(1,1,3):
Why? You're saying s is the lenght of the square starting at 1,1. With length 3 the resulting corner would be 4,4. Not 3,4. Or in other words, there can't be a square between (1,1) and (3,4) since a squares' sides are of equal length.
(3,4) - (1,1) = (2,3) #NotASquare


holli

You can lead your users to water, but alas, you cannot drown them.