Showing Posts From
Binary tree
- 22 Dec, 2025
Advanced Binary Tree & BST
Week 22 notes: the harder tree problems, where a node has to report several facts to its parent at once. The return-tuple DFS pattern, lowest common ancestor, path sums, and serialize/deserialize.
- 29 Sep, 2025
Binary Trees: Traversals & DFS / BFS
Week 10 notes: binary trees are basically recursion you can draw. The three DFS orders, level-order BFS, and the one move that solves most tree problems.