Problem 2052 · Medium
Wrap whole words into rows with minimum squared unused-space cost, excluding the last row.
Open the interactive visualisation