Complete Contest | Video Solution | In Depth | C++ | Java
Intuition, approach, and complexity discussed in video solution in detail\nhttps://youtu.be/u39fMUqUT0Y\n\n# Code\nC++\n\nclass Solution {\npublic:\n    bool is
# Intuition, approach, and complexity discussed in video solution in detail\nhttps://youtu.be/u39fMUqUT0Y\n\n# Code\nC++\n```\nclass Solution {\npublic:\n    bool isAcronym(vector<string>& words, string s) {\n        string res = "";\n        for(auto & w : words){\n            res += w[0];\n        }\n        return res == s;\n    }\n};\n```\nJava\n```\nclass Solution {\n    public boolean isAcronym(List<String> words, String s) {\n        StringBuilder res = new StringBuilder();\n        for(var w : words){\n            res.append(w.charAt(0));\n        }\n        return res.toString().equals(s);\n    \n    }\n}\n```
['C++']