beginner soln in c++
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\nloop through each element of words array and assign the value to variable
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\nloop through each element of words array and assign the value to variable and append the char of each word in result variable and return the result.\n\n# Complexity\n- Time complexity:\nO(N)\n\n- Space complexity:\nO(1)\n\n# Code\n```\nclass Solution {\npublic:\n    bool isAcronym(vector<string>& words, string s) {\n        \n        string result="";\n        for(int i=0;i<words.size();i++){\n            string acro=words[i];\n            result+=acro[0];\n        }\n        return result==s;\n    }\n};\n```
['C++']