🏠
Guest Not signed in

Pigeonhole: when collision is unavoidable

More pigeons than holes means two pigeons share a hole. The interview trick is choosing the right pigeons and holes.

Method · Pigeonhole
Intro
Ten pigeons distributed across nine pigeonholes β€” the literal physical anchor for the pigeonhole principle.
BenFrantzDale, edited by McKay, CC BY-SA 3.0 · CC-BY-SA-3.0 / GFDL · Wikimedia Commons

If you have more pigeons than holes, some hole gets at least 2 pigeons. Olympiad-flavored but interview-direct: many counting problems collapse the moment you spot the right partition into boxes. The formula is trivial β€” $n+1$ pigeons in $n$ boxes β€” so the entire skill is finding the boxes.

βœ“ Intro Β· expand
Independent · Legal