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 to parent
Repeat for all nodes
Final max path sum is global max
Start from root, recursively find max path sums from left and right children, update global max with paths through current node, return max path sum to parent, repeat for all nodes.
