The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. Tom Cargill

Print BT vertically

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


Data structure Description

Write a program to print the Binary tree vertically using the hash table.


Output

   					 

All the items from the tree:4 2 5 1 6 3 7 
Print Binary tree items vertically:[-1=[], 0=[1, 6], -2=[], 1=[], 2=[]]

				    

Comments


No comments available!

Please login to add comments.