Question DSA-BST-0006
EasyWhich of these is a self-balancing binary search tree?
- A.
Binary heap
- B.
AVL tree
- C.
Show answer and explanation
Answer: B
AVL and red-black trees rotate after insertions and deletions to keep their height O(log n).
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Binary Search Trees question
Which of these is a self-balancing binary search tree?
Binary heap
AVL tree
Answer: B
AVL and red-black trees rotate after insertions and deletions to keep their height O(log n).
Trie
Segment tree