Tagged Questions
4
votes
1answer
664 views
Print a Binary Tree
Inspired by a recent question on SO...
Write a function to print a binary tree in the following format:
3
/ \
1 5
\ / \
2 4 6
The output should consist of a line of nodes, ...