GATE CS 2020 · Question 16 · Programming and Data Structures · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
What is the worst case time complexity of inserting n² elements into an AVL-tree with n elements initially?
- (A) Θ(n⁴)
- (B) Θ(n²)
- (C) Θ(n² log n)
- (D) Θ(n³)
Answer
Answer (C)
Answer from the official GATE CS 2020 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes