01Chapter 1: Trees and their vocabularyThis chapter assumes you know recursion, object references (pointers), Big-O notation, and arrays and linked lists. The code uses Python classes and the deque type from collections.2 min read
02Chapter 2: Rebuilding a tree from two traversalsThis chapter assumes you know recursion, object references, and the four traversal orders from earlier in the tutorial. It rebuilds trees from traversal lists, applies the same ideas to expression trees, and then covers search and insertion in a binary search tree (BST).2 min read
03Chapter 3: Inorder traversal yields sorted keysThis chapter assumes you know recursion, object references, Big-O notation, and the four traversals of a binary tree. It covers the BST ordering property, deletion, operation cost, Catalan counting, and AVL balancing.2 min read