On two occasions I have been asked [by members of Parliament]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. Charles Babbage

LCA of two given tree nodes

Language Java | Level Intermediate | Category Data structure | September 8, 2015 8:31 am


Data structure Description

Write a program to LCA of two given tree nodes.


Output

   					 

All Binary Tree Values: 1  2  3  4  
LCA of two nodes:2

				    

Comments


No comments available!

Please login to add comments.