Skip to content

Latest commit

 

History

History

challenge-60

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Group anagrams

This problem was asked by RobinHood.

Description

Given an array of strings, group anagrams together.

Example

Input: ['eat', 'ate', 'apt', 'pat', 'tea', 'now']
Output: [
          ['eat', 'ate', 'tea'],
          ['apt', 'pat'],
          ['now']
        ]