javascript intermediate Se termine le 2026-11-17

Group anagrams

Write groupAnagrams(words) that groups words made of the same letters.

  • Ignore case: "Listen" and "silent" are anagrams.
  • Each group keeps the words in their original order; groups are ordered by the position of their first word.
  • Return an array of arrays.

Résolu par 0 personnes pour l’instant.

javascript
ÉditeurCtrl + Enter

            
        

Quand les tests affichent "All tests passed", le défi est marqué comme résolu dans ce navigateur.

Envoyer votre solution pour relecture