73. Set Matrix Zeroes
#matrix #array
Given an m x n
integer matrix matrix
, if an element is 0
, set its entire row and column to 0
's.
A simple improvement uses
O(m + n)
space, but devise a constant space solution
Intuition
Approach
Complexity
Space Complexity
Time Complexity
We iterate over all the elements in the matrix
Code
Last updated