/MatrixWithZeroes

An algorithm that inputs the value 0 for all elements of rows and columns with at least an element of value 0

Primary LanguagePython

MatrixWithZeroes

An algorithm that inputs the value 0 for all elements of rows and columns with at least an element of value 0

Time complexity for M = number of rows and N = number of columns

O(M x N)

Space complexity for M = number of rows and N = number of columns

O(max(M,N))