✔Simple C++ code || Easy || beats 100% ✌
\n\nRuntime: Beats 100%\n\n# Code\n\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) {\n        int c=0;\n        for(auto j:w
\n\nRuntime: Beats 100%\n\n# Code\n```\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) {\n        int c=0;\n        for(auto j:words){\n            int b=1;\n            for(int i=0;i<j.size();i++){\n                if(j[i]!=s[i]){\n                    b=0;\n                    break;\n                }\n            }\n            if(b==1){\n                    c++;\n                }\n        }\n        return c;\n    }\n};\n```\nHope you liked the implementation of the code, if you like it feel free to upvote \uD83D\uDC4D
['C++']