Approach hintTry it first, then revealHide
The longest path that bends at a node has leftHeight + rightHeight edges. Return heights from the recursion and update a global best at every node.
The longest path that bends at a node has leftHeight + rightHeight edges. Return heights from the recursion and update a global best at every node.