Trees
Solve tree problems with DFS and BFS templates.
- DSA.10.01Pattern 11: Tree DFSCoreMid-levelBeing written
- DSA.10.02Pattern 12: Tree BFSCoreMid-levelBeing written
- DSA.10.03Pattern 13: Binary search treesMid-levelBeing written
Interview questions in this module
- Find the maximum depth of a binary tree recursively and iteratively.
- What is the difference between DFS and BFS? When do you use each?
- Validate a BST. Why is checking only the children wrong?
- Find the lowest common ancestor of two nodes.
- Serialize and deserialize a binary tree.