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, you want to turn off all bulbs in the same row and column, but you only have a small notebook to mark which rows and columns to turn off later.
Matrix before: 1 1 1 1 0 1 1 1 1 We mark the row and column of zero cells inside the matrix itself to avoid extra space.
