Writing code has a place in the human hierarchy worth somewhere above grave robbing and beneath managing. Gerald Weinberg

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.