Python 1-line
Time O(26NW), Space O(1)\n\nPython:\npy\n    def countConsistentStrings(self, allowed, words):\n        return sum(all(c in allowed for c in w) for w in words)\
Time `O(26NW)`, Space `O(1)`\n\n**Python:**\n```py\n    def countConsistentStrings(self, allowed, words):\n        return sum(all(c in allowed for c in w) for w in words)\n```\n
[]