Problem 3033 · Easy

Modify the Matrix

Replace each -1 with the largest value in its column, found by scanning the column once.

Open the interactive visualisation