Question d’entretien chez Adobe

Javascript coding question: how to group words that are anagrams. (example: [abc, bca, cab])

Réponse à la question d'entretien

Utilisateur anonyme

3 févr. 2025

Sorted each string alphabetically, remembering the original string in an object {original: "cab", sorted: "abc"}, then used a Map to group these objects by their sorted string. I was allowed to search things on the internet (like how to use a Map in js) and even received live feedback from the interviewers.