1684. Count the Number of Consistent Strings
https://leetcode.com/problems/count-the-number-of-consistent-strings
Description
You are given a string allowed
consisting of distinct characters and an array of strings words
. A string is consistent if all characters in the string appear in the string allowed
.
Return the number of consistent strings in the array words
.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= words.length <= 104
1 <= allowed.length <=26
1 <= words[i].length <= 10
The characters in
allowed
are distinct.words[i]
andallowed
contain only lowercase English letters.
ac
Last updated