Tuesday, October 23, 2012

Least Common Ancestor in Binary Tree

Given a Binary Tree (not Binary Search Tree), and two nodes A and B. Find the closest common ancestor for both the nodes.

Solution

No comments:

Post a Comment

UA-36403895-1