Question: What is the primary purpose of balancing in AVL and Red-Black trees?
Options:
Correct Answer: To ensure O(log n) time complexity for operations
Solution:
The primary purpose of balancing in AVL and Red-Black trees is to ensure O(log n) time complexity for operations.