Find maximum size of rectangles to fill a container
質問
I have a container, of a certain width and height. I have a bunch of blocks that I need to fit in the container but I need to calculate the maximum size these blocks can be to fit.
For example:
to:
I guess its similar to this question but his code is jquery and applies to text. I would just like pseudocode or some form of algorithm of how to do this.
正しい解決策はありません
所属していません StackOverflow