Problem 807 · Medium

Max Increase to Keep City Skyline

Raise each building to the smaller of its row maximum and column maximum.

Open the interactive visualisation