Problems / Math & Geometry / Set Matrix Zeroes
#138 Medium Time O(m·n) Space O(1) Animated

Set Matrix Zeroes

Set rows and columns to zero when a zero is found.

LeetCode ↗
Approach: In-place Matrix Flags
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps