Lowest Common Ancestor of a Binary Tree

Problem overview from a real Uber interview:

Given a root, find the deepest node having targets p and q as descendants, including self-descendants. Handles 10^5 unique values. Uber LeetCode 236.

Check more interview questions and experiences about Uber

Please log in to view interview details