June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
16
Task/Anagrams/Red/anagrams.red
Normal file
16
Task/Anagrams/Red/anagrams.red
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Red []
|
||||
|
||||
m: make map! [] 25000
|
||||
|
||||
maxx: 0
|
||||
foreach word read/lines http://www.puzzlers.org/pub/wordlists/unixdict.txt [
|
||||
sword: sort copy word ;; sorted characters of word
|
||||
|
||||
either find m sword [
|
||||
append m/:sword word
|
||||
maxx: max maxx length? m/:sword
|
||||
] [
|
||||
put m sword append copy [] word
|
||||
]
|
||||
]
|
||||
foreach v values-of m [ if maxx = length? v [print v] ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue