https://leetcode.com/problems/maximum-number-of-words-you-can-type



Runtime: 82 ms, faster than 65.00% of TypeScript online submissions for Maximum Number of Words You Can Type.

Memory Usage: 45.4 MB, less than 15.00% of TypeScript online submissions for Maximum Number of Words You Can Type.



```typescript
function canBeTypedWords(text: string, brokenLetters: string): number {
    //8:07
    const words = text.split(" ")
    let count = 0
    for (const word of words) {
        let ok = true
        for (const char of word.split("")) {
            if (brokenLetters.includes(char)) {
                ok = false
                break
            }
        }
        if (ok) {
            count += 1
        }
    }
    return count
    //8:10
};
```
