Fade to Solo
Math & Geometry

Set Matrix Zeroes

30 MINMleetcode ↗

Problem

Given an m×n matrix, if any element is 0, set its entire row and column to 0 — in place, using O(1) extra space beyond the input itself.

30 MIN00:00unlocks in 30:00
locked30:00 left