my42 / lowestcommonancestor Goto Github PK
View Code? Open in Web Editor NEWIn graph theory and computer science, the lowest common ancestor (LCA) of two nodes v and w in a tree T is the lowest node that has both v and w as descendants
License: MIT License