Kata – Anagrams

I am going to use another kata from Dave Thomas’ Blog again! Anagrams!

Taken Directly:

The challenge is fairly simple: given a file containing one word per line, print out all the combinations of words that are anagrams; each line in the output contains all the words from the input that are anagrams of each other. For example, your program might include in its output:

kinship pinkish
enlist inlets listen silent
boaster boaters borates
fresher refresh
sinks skins
knits stink
rots sort

Use the word List for comparing results.

One thought on “Kata – Anagrams”

Leave a Reply to Trevor Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.