by mbb70 · 10mo ago · 0 comments
Then find all words with 7 unique letters, then get the unique set of letter sets. These are your valid puzzles times 7 for each selection of a center letter.
Construct a trie of your dictionary. For each letter of each puzzle, walk the trie using only the puzzle letters. When you find a word, if it used the center letter, add to list.
In practice it's log(n) for size of dictionary.
No comments yet.