Question Bank

Lowest Common Ancestor Patterns

Difficulty: Hard

Five harder prompts on LCA in BSTs and general binary trees, with the parent-pointer variant. Code-anchored interview prep.