Interview questions
Find a company or topic. Read the sources, then practice.
Loading the question library…
Find a company or topic. Read the sources, then practice.
Loading the question library…
Showing 1–4
Companies: Amazon, Apple, Meta
Binary Lifting · Binary Tree · Hash Table · Lowest Common Ancestor
Last reported Oct 2026
Given a binary tree and two nodes p and q, find their lowest common ancestor (LCA) — the deepest node that has both p and…
Companies: Amazon, Apple, Atlassian, Canva +6
Binary Lifting · Binary Tree · Depth-First Search · Lowest Common Ancestor
Last reported Sep 2026
Given lists where each entry names a parent region followed by its immediate subregions and two region names, find their smallest common region — the…
Companies: Airbnb
Array · Binary Lifting · Breadth-First Search · Depth-First Search
Last reported Apr 2026
Given a binary tree with unique node values, produce the shortest path from start node s to destination t as a string of 'L', 'R'…
Companies: Snowflake
Binary Lifting · Binary Tree · Depth-First Search · Lowest Common Ancestor