Metajuniornov. de 2024
Solve a variation of Pacific Atlantic Water Flow without oceans
Given an m×n height grid where water can flow from a cell to any neighbor of lesser-or-equal height, return all coordinates from which water can reach both the Pacific (top/left edges) and Atlantic (bottom/right edges). The core challenge is a graph/grid reachability problem typically solved by two multi-source traversals (BFS/DFS) from the ocean borders, propagating uphill (to equal-or-higher heights) and intersecting the reachable sets.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Solve a variation of Pacific Atlantic Water Flow without oceans
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.