leetcode
73. Set Matrix Zeroes
Solution
Python code
Time complexity: O(m * n)
Space complexity: O(1)