C++ clean solution beat 95.83% (hash map)
\n    vector<vector<string>> groupAnagrams(vector<string>& strs) {\n        unordered_map<string, vector<string>> h;\n        for(int i = 0; i < strs.size(); i+
```\n    vector<vector<string>> groupAnagrams(vector<string>& strs) {\n        unordered_map<string, vector<string>> h;\n        for(int i = 0; i < strs.size(); i++){\n            string temp = strs[i];\n            sort(temp.begin(), temp.end());\n            h[temp].push_back(strs[i]);\n        }\n        vector<vector<string>> ans;\n        for(auto m: h) ans.push_back(m.second);\n        return ans;\n    }\n```
[]