Metamiddez. de 2025
asked to return the path
Given an n×n binary grid where 0s are open and 1s are blocked, return the length (number of cells) of the shortest 8-directionally connected path from (0,0) to (n−1,n−1), or -1 if none exists. Core challenge: find the shortest path in a grid with obstacles—typical solution uses BFS over the 8 neighbors (n ≤ 100).
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
asked to return the path
Sem observação adicional neste relato público.
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.