Finding lowest common ancestor

suggest change

Consider the tree:

Lowest common ancestor of nodes with value 1 and 4 is 2

Lowest common ancestor of nodes with value 1 and 5 is 3

Lowest common ancestor of nodes with value 2 and 4 is 4

Lowest common ancestor of nodes with value 1 and 2 is 2

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents