124. Binary Tree Maximum Path Sum
124. Binary Tree Maximum Path Sum
problem description
Input: [1,2,3]
1
/ \
2 3
Output: 6Input: [-10,9,20,null,null,15,7]
-10
/ \
9 20
/ \
15 7
Output: 42algorithm thought
code
algorithm analysis
Last updated