This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
# |