Nine people canít make a baby in a month. (regarding the addition of more programmers to get a project completed faster Fred Brooks

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.