Thursday Code Puzzler: Anagram Solver
Join the DZone community and get the full member experience.Join For Free
By now you should be familiar with our Thursday Code Puzzler slot. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you think is suitable.
Note: Even though there really is nothing stopping you from finding a solution to this on the internet, try to keep honest, and come up with your own answer. It's all about the participation!
For this week's challenge, let's take a look at an anagram solver. For a given string, simply find the words that could solve the anagram. And let's take the approach of whole word anagrams only. If you can hook into some online service to prove the word actually exists, even better. Again, all the focus here is on efficiency.
Thanks to everyone who is participating in these puzzlers - last week's seemed to be quite active, with a good discussion around proposed solutions.
Opinions expressed by DZone contributors are their own.