You are given a string allowed consisting of distinct characters and an array of strings words. A string is considered consistent if every character in it appears in the string allowed.
Return the total number of consistent strings in the array words.
Constraints:
words.length
allowed.length
words[i].length
The characters in allowed are distinct.
words[i] and allowed contain only lowercase English letters.
You are given a string allowed consisting of distinct characters and an array of strings words. A string is considered consistent if every character in it appears in the string allowed.
Return the total number of consistent strings in the array words.
Constraints:
words.length
allowed.length
words[i].length
The characters in allowed are distinct.
words[i] and allowed contain only lowercase English letters.