Rust HashMap Solution Simple
rs\nuse std::collections::HashMap;\n\nimpl Solution {\n    pub fn group_anagrams(strs: Vec<String>) -> Vec<Vec<String>> {\n        let mut h = HashMap::new();\n
```rs\nuse std::collections::HashMap;\n\nimpl Solution {\n    pub fn group_anagrams(strs: Vec<String>) -> Vec<Vec<String>> {\n        let mut h = HashMap::new();\n        \n        for s in strs {\n            let mut key: Vec<char> = s.chars().collect();\n            key.sort();\n            h.entry(key).or_insert(vec![]).push(s);\n        }\n        \n        h.values().cloned().collect()\n    }\n}\n```
['Rust']