Concept Flow - DP on Trees Maximum Path Sum
Start at root node
Compute max path sum from left subtree
Compute max path sum from right subtree
Calculate max path through current node
Update global max if current path is higher
Return max path sum including current node and one subtree
Repeat for all nodes via recursion
Final global max is maximum path sum in tree
We recursively compute max path sums from left and right subtrees, update a global max including paths through current node, and return max sums for parent computations.
