Skip to content
Medium-Easy Understand Trees & BST Multiple Choice

What is the time complexity of the O(n) balanced-tree check (LC 110) that returns -1 for unbalanced?

Understand — Tests comprehension and ability to explain concepts.

Answer Options

A O(n log n)
B O(n)
C O(n²)
D O(log n)

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 33+ more Trees & BST questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Trees & BST topic (Data Structures).

More Trees & BST Questions