Given a string text of words separated by a single space and a string brokenLetters containing distinct characters representing keys on a malfunctioning keyboard, return the total count of words in text that can be fully typed without using any broken key.
A word can be typed if and only if none of its letters are in brokenLetters.
Constraints:
text.length
brokenLetters.length
text consists of words separated by a single space without any leading or trailing spaces.
Each word consists only of lowercase English letters.
brokenLetters consists of distinct lowercase English letters.
Given a string text of words separated by a single space and a string brokenLetters containing distinct characters representing keys on a malfunctioning keyboard, return the total count of words in text that can be fully typed without using any broken key.
A word can be typed if and only if none of its letters are in brokenLetters.
Constraints:
text.length
brokenLetters.length
text consists of words separated by a single space without any leading or trailing spaces.
Each word consists only of lowercase English letters.
brokenLetters consists of distinct lowercase English letters.