Question

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

This is an arrays question.

Idea

  • I want to literate through the list of arrays and determine a criteria to bin each word
  • I could use a sorted string of the letters in the word as a key and have the value be the sublist
  • After iterating through the entire list, O(n) time, I would take the values in the hashmap, and append them to a res list and return that
  • Nov 28 2025: FUCKING CASH BABY

Solution