About this puzzle

Memory Compaction — practice the decision, scored against the optimum

What does the Memory Compaction puzzle teach?

Under a context cap, summarising a bulky-but-useful turn can beat keeping it whole or dropping it.

Why do interviews ask about this?

What to keep vs summarize is the long-context / agent-memory interview: compact to fit the window without dropping the signal.

How is it scored?

The engine computes the provably-optimal answer for the exact instance you played (dynamic programming, shortest-path, or exhaustive search — never a heuristic) and scores your attempt as a percentage of it. No login needed to see your score.