LeetCode 73: Set Matrix Zeroes — Step-by-Step Visual Trace
Medium — Array | Hash Table | Matrix
The Problem
Given an m x n matrix, if an element is 0, set its entire row and column to 0. The modification must be done in-place.
Approach
First pass through the matrix to identify and store all rows and columns ...
blog.tracelit.dev1 min read