Tree: Depth-First Search - Binary Tree Maximum Path Sum
You are given a binary tree where each node contains an integer value (which can be negative). The task is to find the maximum sum of values along any path in the tree, where a path can start and end at any node and must be connected through parent-child links. Which approach guarantees an optimal solution for this problem?
