Concept Flow - DP on Trees Maximum Path Sum
Start at root node
Recursively find max path sum from left child
Recursively find max path sum from right child
Calculate max path through current node
Update global max if current path is higher
Return max path sum including current node and one child
Repeat for all nodes
Final max path sum is global max
We start at the root and recursively find max path sums from left and right children. At each node, we calculate the max path passing through it and update a global max. We return the max path including the node and one child to parent.
