Saying that Java is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders. Alanna

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.