Mental Model
When a cell in a matrix is zero, set its entire row and column to zero without using extra space.
Analogy: Imagine a grid of light bulbs. If one bulb is off, then all bulbs in the same row and column must be turned off too, but you only have a small notebook to mark which rows and columns to turn off later.
Matrix before: 1 2 3 4 0 6 7 8 9 We mark row 1 and column 1 to turn off later.
