Binary search tree, LCA, min, max