An algorithm that inputs the value 0 for all elements of rows and columns with at least an element of value 0
O(M x N)
O(max(M,N))
An algorithm that inputs the value 0 for all elements of rows and columns with at least an element of value 0
Python