HTMLify
LeetCode - Count the Number of Consistent Strings - Python
Views: 237 | Author: abh
class Solution:
def countConsistentStrings(self, allowed: str, words: List[str]) -> int:
return len(list(filter(lambda e:set(e)<=set(allowed),words)))