Given the `root` of a binary tree, find the maximum value `v` for which there exist different nodes `a` and `b` where `v = |a.val - b.val|` and `a` is an ancestor of `b`.
A node `a` is an ancestor of `b` if either any child of `a` is equal to `b`, or any child of `a` is an ancestor of `b`.
Given the root of a binary tree, find the maximum value v for which there exist different nodes a and b where v = |a.val - b.val| and a is an ancestor of b.
A node a is an ancestor of b if either any child of a is equal to b, or any child of a is an ancestor of b.
For any node, the best partner among its ancestors is either the smallest or the largest value above it. So carry lo and hi down each path, starting at the root value 8.