Problem 1178 · Hard

Number of Valid Words for Each Puzzle

Encode each word as a letter bitmask, then look up every subset of a puzzle that includes its first letter.

Open the interactive visualisation