...
/DIY: Lowest Common Ancestor of a Binary Tree
DIY: Lowest Common Ancestor of a Binary Tree
Solve the interview question "Lowest Common Ancestor of a Binary Tree" yourself in this lesson.
We'll cover the following...
Problem statement
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
Input
The ...