DoorDashmidfev. de 2026
part 1 - between alive nodes which are leaf nodes part 2 - if alive nodes are anywhere in the tree and negative numbers are included
Find the maximum sum of any non-empty connected path in a binary tree (nodes used at most once), where the path can start and end at any nodes and node values may be negative. You must account for single-node paths when all values are negative.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
part 1 - between alive nodes which are leaf nodes part 2 - if alive nodes are anywhere in the tree and negative numbers are included
Sem observação adicional neste relato público.
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.