Question DSA-TREE-0037
EasyWhat is the lowest common ancestor (LCA) of two nodes in a tree?
- A.
The parent of the first node
- B.
The root, always
- C.
The node with the smallest value
- D.
The deepest node that is an ancestor of both
Sign up free to see the answer and a step-by-step explanation.