Skip to content

Instantly share code, notes, and snippets.

# An anagram is a word formed by rearranging the letters of another, like "topside" and
# "deposit". In some cases, there might be as many (or more) anagrams than there are
# characters, like "post", "spot", "stop" and "tops".
#
# Write a program to find all of the anagrams in a dictionary in which there are at
# least 4 letters in the word and at least as many anagrams as there are letters.
#
# The dictionary will be a file on disk with one line per word. Your operating system
# likely already has such a file in /usr/dict/words or /usr/share/dict/words.
#