Binary Tree Maximum Path Sum

A path is any sequence of nodes connected by edges. Return the maximum sum of any path in the tree.

Examples
Input: [-1]
Output: -1
Hints
Related Problems

Binary Tree Maximum Path Sum

A path is any sequence of nodes connected by edges. Return the maximum sum of any path in the tree.