Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 235. Lowest Common Ancestor of a Binary Search Tree
Given a BST and two nodes p and q, find their lowest common ancestor — the deepest node that is an ancestor of both. Leverage BST ordering to traverse from the root until you reach the first node where p and q fall on different sides (or equal the node), which is the LCA.
Asked at:
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid September, 2025
Senior
Late July, 2025
Senior
Early April, 2025
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.