Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 348 Bytes

File metadata and controls

17 lines (12 loc) · 348 Bytes

Problem 16: Group Anagrams

Problem Statement

Given an array of strings, group the anagrams together.

Input Format

  • A list of strings.

Output Format

  • A list of groups.

Constraints

  • 1 <= len(strs) <= 10^4

Example

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