Set Matrix Zeroes without extra space
Filed under Zomato
The question
Given a 2D matrix, if an element is 0, set its entire row and column to 0 in-place without using extra space.
No write-up yet. Related questions below have one.
Related Zomato questions
Collected from public candidate posts and coding forums. Updated Nov 2026.