Which of the following is a property of an AVL tree?
22 views
- Each node has at most two children
- The difference of heights of left and right subtrees of any node is at most one (Correct Answer)
- All leaves are at the same level
- Nodes are arranged in level order
Explanation
An AVL tree is a self-balancing binary search tree where the height difference (balance factor) of left and right subtrees of every node is at most 1, ensuring O(log n) height.