Javascript coding question: how to group words that are anagrams. (example: [abc, bca, cab])
Anonymous
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.
Check out your Company Bowl for anonymous work chats.