🏠
Guest Not signed in

Invariants: the quantity the move can’t touch

Some quantity stays fixed no matter what move you make. Find it, and the puzzle either has a clean parity argument or no solution at all.

Method · Invariants
Intro

When a problem describes a process β€” “repeatedly do this until one thing is left” or “can this state reach that state?” β€” find a quantity that every legal move preserves. If the start and goal disagree on that quantity, the goal is unreachable; if they agree, the invariant often forces the answer. Olympiad-flavored, but the same move powers state-machine and system-design interview questions: “what property of this system does no transition ever change?”

βœ“ Intro Β· expand
Independent · Legal