Intuition
A BST enforces only the ordering invariant (left < node < right), not balance. So its shape depends entirely on insertion order, and any universally true claim must hold for every possible shape — from a perfectly balanced tree to a degenerate chain.
Result
For a BST on nodes (height/depth counted in edges, root at depth ):
- Height: minimum (balanced), maximum (degenerate chain). So depth is at most always.
- Leaves: minimum (a chain has a single leaf), maximum (complete tree). So you can never claim "at least leaves" or " leaves."
Worked example ()
Degenerate (insert 1,2,3,4): Balanced:
1 2
\ / \
2 depth = 3 = n-1 1 3
\ 1 leaf \
3 4
\ depth = 2 = ceil(log2 4)
4 2 leaves (max = ceil(4/2)=2)
The chain reaches depth ; no shape exceeds it. Max leaves is , so leaves is impossible.
Pitfall: Treating a BST as automatically balanced. The tempting answers assume balance, which a plain BST does not guarantee — the degenerate chain (depth , one leaf) breaks them. Only a self-balancing tree (AVL, red-black) forces height.