From a96b65cbfad7f62f3db6b2eab105e4e25c0414c5 Mon Sep 17 00:00:00 2001 From: Jack Sangdahl Date: Fri, 27 Jun 2025 12:23:02 -0600 Subject: chore: remove old cpp and rust solutions --- other/group_anagrams.cpp | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 other/group_anagrams.cpp (limited to 'other/group_anagrams.cpp') diff --git a/other/group_anagrams.cpp b/other/group_anagrams.cpp deleted file mode 100644 index a2a7c8a..0000000 --- a/other/group_anagrams.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - vvd(string) groupAnagrams(vector &strs) { - map, vector> groups; - for (string s : strs) { - array hash = {0}; - for (char c : s) - ++hash[c - 'a']; - groups[hash].push_back(s); - } - vvd(string) ans; - for (auto [hash, group] : groups) - ans.push_back(group); - return ans; - } -}; -- cgit v1.2.3