Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 262 Bytes

File metadata and controls

19 lines (14 loc) · 262 Bytes

Problem 49: Group Anagrams

Difficulty: Medium

Problem

Given an array of strings, group anagrams together.

Example

Input: ["eat", "tea", "tan", "ate", "nat", "bat"],
Output:
[
  ["ate","eat","tea"],
  ["nat","tan"],
  ["bat"]
]