Hope the question is clear. Basically you need to print a given tree
such that spaces will depict the left/right relation at every level.
output should be something like
a
b c
d e f g
Levels are separated by new lines. Notice that space
It is basically BFS for this tree, just maintain spaces at each level
provided tree is a complete binary tree.
Sanju
:)
On Sun, Aug 28, 2011 at 7:46 AM, Navneet Gupta navneetn...@gmail.comwrote:
Hope the question is clear. Basically you need to print a given tree
such that spaces will