This set of notes on algorithms is not meant to be accurate or comprehensive. I am only using this as a reminder.

Recursively Traverse a Tree

  1. Top-down: node first, like a pre-order
  2. Bottom-up: like post-order