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–3
Given the root of a binary tree, return the diameter — the maximum number of edges on any path between two nodes; the core challenge…
Companies: Meta, Oracle, Roblox
Binary Tree · Depth-First Search · DP on Trees · Tree
Last reported Sep 2026
Place the minimum number of cameras on nodes of a binary tree so every node is monitored by a camera on itself, its parent, or…
Companies: Amazon, D. E. Shaw
Binary Tree · Depth-First Search · DP on Trees · Dynamic Programming
Last reported Aug 2026
Find the maximum sum of any non-empty connected path in a binary tree (nodes used at most once), where the path can start and end…
Companies: Amazon, Datadog, DoorDash, Expedia +4
Binary Tree · Depth-First Search · DP on Trees · Dynamic Programming
Last reported Jun 2026