kpeeters / tree.hh

An STL-like C++ header-only tree library
GNU General Public License v3.0
132 stars 31 forks source link

Finding common ancestor does not consider all cases #17

Open kpeeters opened 1 year ago

kpeeters commented 1 year ago

The lowest_common_ancestor function fails to spot when one node is the parent of the other.