Concept Flow - DP on Trees Maximum Path Sum
Start at root node
Recursively compute max path sum from left child
Recursively compute 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 to parent
Repeat for all nodes
Final global max is answer
We visit each node, compute max path sums from children, update global max path sum including current node, and return max path sum to parent.
