Set Matrix Zeroes (#73)
Given an m x n
integer matrix matrix
, if an element is 0
, set its entire row and column to 0
's.
You must do it in-place.
Company Tags: Amazon, Facebook, Microsoft
Core Concept: Matrix, Hashing
Given an m x n
integer matrix matrix
, if an element is 0
, set its entire row and column to 0
's.
You must do it in-place.
Company Tags: Amazon, Facebook, Microsoft
Core Concept: Matrix, Hashing