I have a project to do that requires me to print out a Binary tree i have got it to print the three orders ( inorder, preorder, and postorder ) which is really easy to do but now I got to print out the actual tree itself. I have no clue where to start and i was woundering if someone could help me.
Example output:
---------------------------------------------
d
/ \
b f
/ \ / \
a c e g
----------------------------------------------
(or)
----------------------------------------------
g
f
e
d
c
b
a