All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · June 2024 Re-Exam

______ is a self-balancing binary search tree where the path from the root to the farthest leaf is no more than twice as long as the path from the root to the nearest leaf.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. Red-Black tree

Explanation

Red-black tree properties guarantee that the longest root-to-leaf path is at most twice the shortest one.

More Data Structures and Algorithms questions