Metamiddez. de 2025
Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's. You must do it in place.
Given an m×n matrix, set every row and column to zero wherever an element is zero, modifying the matrix in-place. The key challenge is to do this with constant extra space (not O(mn) or O(m+n)), e.g., by using the matrix itself to mark rows/columns to zero.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's. You must do it in place.
Set Matrix Zeroes
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.