Medium-EasyUnderstandTrees & BSTMultiple Choice

What is the time complexity of LCA in a BST vs a general binary tree?

Understand Tests comprehension and ability to explain concepts.

Answer Options

AO(log n) BST, O(n) general
BO(n) BST, O(log n) general
CO(n) both
DO(log n) both

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