Binary trees and traversals

A binary tree is a root with a left and a right subtree, so tree code is naturally recursive, and preorder, inorder and postorder differ only in whether a node is handled before, between or after its two subtrees.

From Data Structures and Algorithms.