Available question text
For each 7-letter puzzle, count how many words consist only of letters from that puzzle and also include the puzzle's first letter. Key observation: encode words and puzzles as bitmasks, precompute word-mask frequencies, and for each puzzle enumerate subsets of its other 6 letters (2^6) that include the first letter to sum valid words efficiently.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1178. Number of Valid Words for Each Puzzle
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source