companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Lowest Common Ancestor of a Binary Tree

69.3% acceptance · asked by 22 companies

Solve on LeetCode
Depth-First SearchTreeBinary 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

Newsbreak100Meta88Sap88Lucid88Wix88Amazon75Bitgo75Atlassian75Yandex63Apple63Bloomberg63Intel63Linkedin63Microsoft63Mongodb63Oracle63Adobe63Intuit50Tiktok50Cisco38Google38Goldman Sachs25

Related problems

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