Dashboard Temp Share Shortlinks Frames API

HTMLify

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