In a binary integer value tree, find the lowest level common ancestor of two values.
Sigiloso
This is a very common question appeared on interview sites, books. The solution they provided is either inefficient or hard to understand. I worked out a simple idea: return {null, p, q, common ancestor} four type of values then the recursion will be very easy to write, and the code runs in log(n)