Which property ensures that an AVL tree remains balanced?
15 views
- Height difference ≤ 1 (Correct Answer)
- Equal number of nodes
- Complete binary tree
- Full binary tree
Explanation
In AVL trees, the balance factor (difference between heights of left and right subtrees) must be -1, 0, or +1. This constraint ensures logarithmic height and efficient operations.