Binary Trees Checkpoint

Tree recursion, traversals, BST validation, and LCA.


1. What should a tree recursion function return for a nil node?
2. Which traversal visits nodes in sorted order for a BST?
3. The naive BST validation (check left.val < root.val < right.val) is wrong because:
4. In LCA, if both left and right recursive calls return non-null:
5. Time complexity of visiting all n nodes in a tree?