Linkage
https://leetcode.com/problems/set-matrix-zeroes/description/
Solution
A traverse of will help us to mark which column or row should be marked as all zero. In this implementation, we will use O(m+n) space.
1 | class Solution { |
Why don't you come to your senses?
https://leetcode.com/problems/set-matrix-zeroes/description/
A traverse of will help us to mark which column or row should be marked as all zero. In this implementation, we will use O(m+n) space.
1 | class Solution { |