Skip to main content
DevHives

Largest Path Sum in a Binary Tree

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
[4,-7,9,2,null,-3,6]
Expected:
19
Case 2
Input:
[-5,8,3,-2,7]
Expected:
15
Case 3
Input:
[-6,-9,-4]
Expected:
-4
Ready

Run checks your code against the 3 examples. Submit checks it against all 163 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.