tree.hh
tree.hh copied to clipboard
Finding common ancestor does not consider all cases
The lowest_common_ancestor
function fails to spot when one node is the parent of the other.