For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match. Bill Bryson

Distance between two nodes

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


Data structure Description

Write a program to find the Distance between two nodes in the binary tree.


Output

   					 

All Binary Tree Values: 1 2 3 4  
Distance between two nodes: 4

				    

Comments


No comments available!

Please login to add comments.