Skip to content

META interview question #3

@keshavMM004

Description

@keshavMM004

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions