w3Develops Logo

Algorithms Daily

One classic coding problem a day, the same for everyone, changing at midnight UTC. Try it, share your approach on the community feed with #algorithmsdaily, and follow @algorithmsdaily on X.

Problem for 2026-11-11 (UTC)

Group the anagrams

Medium
hash maps
strings

Group a list of words so words made of the same letters are together.

Example

["listen", "stone", "silent", "notes", "enlist"] → [["listen", "silent", "enlist"], ["stone", "notes"]]

Hints

Hint 1

Two words are anagrams if their sorted letters match.

Hint 2

Use the sorted letters (or a letter count) as a map key.

The past week

  • 2026-11-10 · Buy once, sell once
    Easy
  • 2026-11-09 · Best stretch of days
    Medium
  • 2026-11-08 · Merge two sorted lists
    Easy
  • 2026-11-07 · Palindrome, ignoring the noise
    Easy
  • 2026-11-06 · The missing number
    Easy
  • 2026-11-05 · Reverse the words
    Easy
  • 2026-11-04 · Balanced brackets
    Easy