Problem bank
MediumMath & GeometryNeetCode 150 · #138/150

Set Matrix Zeroes

  1. 1
    Learn the pattern

    Look for the invariant: rotation cycles, row/col markers, or digit math that avoids strings.

  2. 2
    Trace your version

    Paste your solution into the workspace and watch every step execute.

    Open workspace
  3. 3
    Solve it

    Solve it on LeetCode, then mark it solved here to keep your streak alive.

Spiral MatrixHappy Number