Data structures · Trees and traversals

Three depth-first orders

Printing every node of a tree means choosing when to print a node: before its subtrees, between them or after them.