Module M18 · 18 of 35 in teaching order · Intermediate
Trees
Tree vocabulary, representations and every traversal, recursive and iterative.
Lessons
The four ways to visit every node of a binary tree: recursive preorder, inorder and postorder, queue-based level order, their costs, and iterative versions.
Topics this module covers
The full module scope. Topics without a lesson above are not written yet.
- terminology
- depth/height
- binary/full/complete/perfect
- representations
- preorder/inorder/postorder/level order
- iterative and recursive traversal
- construction
- serialization