Glossary term
What is lowest common ancestor? Meaning for developers
The deepest node that has both given nodes below it (a node counts as below itself).
Learn it properly · DSALesson 45: Lowest Common Ancestor and Building TreesFind the lowest common ancestor in a binary tree and a BST. Build a tree again from its traversals.