Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 274 Bytes

File metadata and controls

18 lines (17 loc) · 274 Bytes

Group Anagrams

Description
Given an array of strings, group anagrams together.

For example, given:

 ["eat", "tea", "tan", "ate", "nat", "bat"], 

Return:

[
  ["ate", "eat","tea"],
  ["nat","tan"],
  ["bat"]
]

Note: All inputs will be in lower-case.