|
In that case, you need to print out the right hand child, then the current node, then the left hand child. The indent should work OK (personally I would use a space or two rather than a tab). Remember to add a "\n" to the end of the output of each node's value to output a new line.
If that doesn't work, show us the printing code you are using now.
|