In this tree the ancestors of 4 are 5,10
There is a simple recursive solution to find the ancestor of a binary tree
[gist https://gist.github.com/vishnujayvel/5888810 ]In this tree the ancestors of 4 are 5,10
There is a simple recursive solution to find the ancestor of a binary tree
[gist https://gist.github.com/vishnujayvel/5888810 ]