Exercises/#14 Group Anagrams
#14

Group Anagrams

MediumπŸ”€ Strings
80 XP

Problem

Given an array of strings strs, group the anagrams together. Return the groups in any order.

Examples

Input: strs = ['eat','tea','tan','ate','nat','bat']
Output: [['bat'],['nat','tan'],['ate','eat','tea']]
hash-mapstringsorting
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

14 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features