Microsoft logoMicrosoft
CodingMembers

Lowest Common Ancestor (LC 235) with a Follow-Up Variant

Members only

Start with LC 235 and find the lowest common ancestor of two nodes in a binary search tree. The follow-up removes the BST ordering guarantee and becomes the general binary-tree problem in LC 236.

MLE
tree
bst
dfs
recursion
medium
Frequency
Single report
Last asked
2026-08-15
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...