Set Matrix Zeroes

Try to solve the Set Matrix Zeroes problem.

Statement

Given a matrix, mat, if any element within the matrix is zero, set that row and column to zero.

Constraints:

...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy