I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone. Bjarne Stroustrup

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.