The outline trick
- 1Complete the tree. Add an empty edge wherever a child is missing, so every node has exactly two. A tree with n nodes needs n + 1.
- 2Trace the outline. Start above the root and go anticlockwise, hugging every node and edge.
- 3Read it off. Write a node as you pass its left (pre), underside (in) or right (post).