About this puzzle

Huffman — practice the decision, scored against the optimum

What does the Huffman puzzle teach?

Fixed-length codes waste bits — frequent symbols deserve short codes; Huffman's greedy is the optimal prefix code.

Why do interviews ask about this?

Huffman coding is the greedy-algorithm interview — build the optimal prefix code and explain why greedy is provably optimal here.

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.