Beginner Data Structures & Algorithms
Q17 / 100

What is the height of a balanced binary tree with n nodes?

Correct! Well done.

Incorrect.

The correct answer is C) O(log n)

C

Correct Answer

O(log n)

Explanation

A balanced binary tree has O(log n) height since each level roughly doubles the node count. This ensures O(log n) operations.

Progress
17/100