python ||O(N)
Time Complexcity O(N)\nspace Complexcity O(1)\n\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        count=0\n        for wo
Time Complexcity O(N)\nspace Complexcity O(1)\n```\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        count=0\n        for word in words:\n            n=len(word)\n            if s[0:n]==word:\n                count+=1\n        return count\n        \n```
['String', 'Python3']