Adobe Interview Question

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

Interview Answer

Anonymous

Feb 3, 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.