Given a container which width is W and height is H, I'd like to fit N squares of maximal size S in it.
Example 1
W = 240
H = 210
N = 7
S = 70
Example 2
W = 200
H = 230
N = 23
S = 40
How would you calculate S from W, H, and N in O(1)?

