C++ | 3-Line solution
\tclass Solution {\n\tpublic:\n\t\t//time:O(n), space: O(1)\n\t\tint countPrefixes(vector& words, string s) {\n\t\t\tint count = 0;\n\t\t\tfor(auto wd : words)\
\tclass Solution {\n\tpublic:\n\t\t//time:O(n), space: O(1)\n\t\tint countPrefixes(vector<string>& words, string s) {\n\t\t\tint count = 0;\n\t\t\tfor(auto wd : words)\n\t\t\t\tif(s.find(wd) < 1) count++; //if first occurrence of sub-string is in the specified string\n\t\t\treturn count;\n\t\t}\n\t};
['C', 'C++']