Jump to content

Anagrams: Difference between revisions

(Crystal code)
Line 6,381:
anagram = Hash.new {|hash, key| hash[key] = []} # map sorted chars to anagrams
 
openuri('http://wiki.puzzlers.org/pub/wordlists/unixdict.txt') do |f|
words = f.read.split
for word in words
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.