companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Lowest Common Ancestor of a BST

asked by 10 companies

Solve on LeetCode
Depth-First SearchTreeBinary TreeBinary Search Tree

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Twitter100Linkedin75Capgemini50Amazon50Bloomberg
50
Meta50
Microsoft50
Yandex38
Google25
Apple25

Related problems

Number of Islands
Medium
Course Schedule
Medium
Word Search
Medium
Course Schedule II
Medium
Binary Tree Maximum Path Sum
Hard