Correct Answer (Detailed Explanation is Below)
B.
O(log n)
Detailed Explanation
Because an AVL tree maintains a balanced height, its height remains
O(log n). Therefore, searching for a key takes
O(log n) time in the worst case. The same logarithmic worst-case bound applies to insertion and deletion, although these operations may require rotations to maintain balance. This is a major advantage of AVL trees over ordinary unbalanced BSTs, whose worst-case height can become O(n).