A binary search tree built from already sorted input is likely to become:
AUnreadable
BUnreachable
CUnbalanced
DUnbeatable
Answer & Solution
Correct answer: C. Unbalanced
1. Insertion order decides the shape of the tree.
2. Sorted input makes one long branch.
3. So the tree becomes unbalanced.
_Source: OpenStax Introduction to Computer Science, Chapter 3, Data Structures and Algorithms._
Keep practising Data Structures and Algorithms
Browse all Data Structures and Algorithms questions for Coding Interview Prep, or explore more Computer Science topics.