← ALL NOTES
Hash Table

1935. Maximum Number of Words You Can Type

Given text (space-separated words) and brokenLetters (letters that can't be typed), a word is typeable if it contains none of the broken letters. Count typeable words. One pass over the text with a…

Loading…