Amazonjuniorset. de 2025
Rotting oranges (variation and optimized code) - graph problem
Given an m×n grid with empty cells, fresh (1) and rotten (2) oranges, compute the minimum minutes until all fresh oranges become rotten as rot spreads 4-directionally each minute, returning -1 if any fresh orange is unreachable. This is a multi-source BFS/level-order propagation problem starting from all initial rotten oranges.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Rotting oranges (variation and optimized code) - graph problem
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.