I think trying to draw the tree in console is not practical and simply doing a post order output will not show you if you did the tree correctly or not. I ended up doing something like this:
Node: 22 Left: NULL Right: NULL Top: 666
Node: 666 Left: 22 Right: 1111 Top: 3333
Node: 1111 Left: NULL Right: NULL Top: 666
Node: 3333 Left: 666 Right: 5555 Top: NULL
Node: 4444 Left: NULL Right: NULL Top: 5555
Node: 5555 Left: 4444 Right: 7777 Top: 3333
Node: 7777 Left: NULL Right: NULL Top: 5555
This way can help debug and also show you if the tree is correct.
- Kon