Max square size for unknown number inside rectangle
Conceptually: start with 1 square For each additional square, if you don’t have room in your grid box so far, shrink the existing box just enough to make room for an additional row or column. pseudocode: given M x N rectangle to fill with K squares // initial candidate grid within the rectangle h=1 w=1 … Read more