Problem 73 · Medium

Set Matrix Zeroes

Clear every row and column that contains a zero in a grid, in place. The visual marks the rows and columns to clear before zeroing them.

Open the interactive visualisation