Problem 49. Group Anagrams [Medium] - Hash Maps
Description
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
First Solution [Time: O(n*k), Space O(n*k)]
def groupAnagrams(self, strs: List[str]) -> List[List[str]]:
# initialise hash map
...
learncodedaily.hashnode.dev1 min read