Algorithm · Meta · Medium
Problem: Zero Out Matrix Rows and Columns You are given an m x n integer matrix named matrix. Whenever matrix[i][j] is equal to 0, make every entry in row i and every entry in column j equal to 0. Return or print the matrix produced by this process. Parameters matrix: List[List[int]] — an m x n matrix of integers. Return Value Return the resulting matrix as List[List[int]] with m rows and n integers in each row. Constraints 1 <= m, n <= 200 -1e9 <= matrix[i][j] <= 1e9…
Checking your access…