๐ Chapter 5.3
โฑ๏ธ Navigation
Chapter 5.3: Trees & Special Graphs
โก This chapter's content has been merged into Chapter 5.5 "Binary Trees & Tree Algorithms"
All tree-related content (traversals, LCA, tree diameter, Euler tour) is now consolidated in:
๐ Content Navigation
Tree Traversals (Pre-order / In-order / Post-order / Level-order)
Lowest Common Ancestor (LCA)
- Naive approach (O(N)) โ Chapter 5.5 ยง3.11.5
- Binary Lifting (O(log N)) โ Chapter 5.5 ยง5.5.1
Tree Diameter (Two BFS)
โ Chapter 5.5 ยง5.5 Practice Problem 5.5.2
Euler Tour (DFS Timestamps)
Union-Find (DSU / Disjoint Set Union)
โ Chapter 5.6 "Union-Find" (path compression, Kruskal MST, weighted DSU, bipartite DSU)
๐ก Chapter 5.5 is the complete tree algorithms chapter, covering everything from BST basics to LCA binary lifting and Euler tour, with 10 practice problems (with full solutions).