About this puzzle

Context Budget — practice the decision, scored against the optimum

What does the Context Budget puzzle teach?

Packing the most relevant chunks into a fixed token window is knapsack — greedy by relevance loses.

Why do interviews ask about this?

Context packing is the RAG question every AI-engineering interview asks — “what goes in the window?” The answer is relevance per token, not raw relevance.

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.