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

In Lowest Common Ancestor of a Binary Tree (LC 236), when does the algorithm return the current root?

Understand — Tests comprehension and ability to explain concepts.

Answer Options

A When root.val equals p.val or q.val
B When both left and right recursive calls return non-null
C When the tree is a BST
D Both A and B

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