keshavMM004/InterviewQuest

META interview question

Ouverte

#3 ouverte le 7 oct. 2024

 (0 commentaire) (0 réaction) (0 personne assignée)Java (0 fork)auto 404
hacktoberfest

Métriques du dépôt

Stars
 (0 étoile)
Métriques de merge PR
 (Métriques PR en attente)

Description

A path in a binary tree is a sequence of nodes where each consecutive pair of nodes is connected by an edge. Each node can appear in the sequence no more than once. The path does not necessarily need to pass through the root.

The sum of a path is the total value of the nodes along the path.

Given the root of a binary tree, return the maximum sum of any non-empty path in the tree.

leetcode

Guide contributeur