Skip to content

Binary Tree Maximum Path Sum #2497

@DeeptiShahi

Description

@DeeptiShahi

Problem Statement : Given the root of a Binary Tree, return the maximum path sum of any path. Path Sum is the sum of node values along a path.

Input : Root Node Object
Output : Integer value
-1000 <= Node.val <= 1000

Example
Untitled

Input : [1, 2, 3, 4]
Output : 10

Approach : I have worked on this problem before using simple recursion and would like to contribute the same to this repository. Please assign this issue to me!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions