Problem 2371 · Hard
Place cells from smallest to largest; each takes one more than the larger of its row and column maximum.
Open the interactive visualisation