Arrays & Hashing • Medium

Group Anagrams

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

The Challenge

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

Difficulty Medium
Topic Arrays & Hashing

Pro-tip: Categorize strings by their sorted characters. Use a dictionary with sorted string keys.

Solution.swift Tests.swift
Output
Ready to run.