Skip to main content

Chains

Intersection of Two Chains

Sep 22, 2026·3 problemsLinked ListBinary Tree

Two paths that merge share a tail. Find the first shared node with a set, or with two pointers that swap starts.

Rebuilding a Number

Sep 22, 2026·15 problemsMathBit ManipulationLinked ListBinary TreeArray & String

Two lines of arithmetic - peel the last digit off, append a digit on - and a choice of base. Every problem here is those two lines wearing different clothes.

Lowest Common Ancestor

Sep 20, 2026·9 problemsBinary TreeBSTLinked List

One question - where do the paths to two nodes split - answered with steadily less information about the tree.

Two Sum

Sep 20, 2026·2 problemsArray & StringBinary Search

The hash map is the right answer exactly once. Every later question in this family takes away the thing that made it right.