TL;DR: Solution can be found here.
Given a list of words and a single word I had to find out if that single word is an anagram with any of the words in the list and return those words that are anagrams in an array.
- A way to go about it is to sort the ‘single word’ and the list of words in the ‘array’ in alphabetical order.
- Compare the sorted strings in the array with the ‘single word’
- If equal, bingo, you have an anagram.