coderaky solution
Leetcode c++ Solutions \uD83D\uDE4C\nhttps://github.com/coderaky/leetcoder\n\n\nclass Solution {\npublic:\n    int countConsistentStrings(string allowed, vector
Leetcode c++ Solutions \uD83D\uDE4C\n[https://github.com/coderaky/leetcoder](https://github.com/coderaky/leetcoder)\n\n```\nclass Solution {\npublic:\n    int countConsistentStrings(string allowed, vector<string>& words) {\n        vector<int> hash (26);\n        int f=1,c=0;\n        for(auto i:allowed)hash[i-\'a\']++;\n        for(auto i: words){\n            f=1;\n            for(auto j:i){\n                if(!hash[j-\'a\']){ f=0; break;} \n            }\n            c+=f;\n        }\n        return c;\n    }\n};\n```
[]