For the best experience, increase the window size or view on a laptop or desktop device
Title | ||
|---|---|---|
Loading... | ||
For the best experience, increase the window size or view on a laptop or desktop device
Title | ||
|---|---|---|
Loading... | ||
Given a string and a list of valid letters, count how many words in the string can be formed using the letters in the valid letters list. For the input string, words are split using spaces. Punctuation and numbers are always considered valid letters. Both uppercase and lowercase are invalid for letters not present in the input list.
Example:
Given a string and a list of valid letters, count how many words in the string can be formed using the letters in the valid letters list. For the input string, words are split using spaces. Punctuation and numbers are always considered valid letters. Both uppercase and lowercase are invalid for letters not present in the input list.
Example:
Output