package
0.0.0-20241209140624-9fce2a725d55
Repository: https://github.com/elven9/my-leetcode.git
Documentation: pkg.go.dev

# README

Group Anagrams

Solution IdxTime ComplexitySpace ComplexityComment
1O(n^2 * (s+t))O(s+t)Naive solution, just compare every string pairs to check if they are anagram to each other
2O(N), where N equal total string lengthSpace, O(len(strs)), map structureClean solution, thanks to golang, Hashmap implementation