Trees: DFS & BFS

Unit 9 of 15

Core Patterns

Trees: DFS & BFS

Think recursively: each call answers a question about one subtree. Master DFS (pre/in/post-order), BFS level by level, and the BST property.

0 of 3 lessons complete, 0 of 8 problems solved

Coursework

39 min

Practice ladder

Start with the first problem, then work toward the harder variations. Run examples before submitting against all tests.

Next unit: Heaps & Top-K