Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 364 Bytes

File metadata and controls

11 lines (8 loc) · 364 Bytes

Problem 9: Set-Equivalence Bucketing (Group Anagrams)

Problem Statement

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

Input Format

  • An array of strings strs.

Example

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