Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Anagrams/Frink/anagrams.frink
Normal file
16
Task/Anagrams/Frink/anagrams.frink
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
d = new dict
|
||||
for w = lines["http://wiki.puzzlers.org/pub/wordlists/unixdict.txt"]
|
||||
{
|
||||
sorted = sort[charList[w]]
|
||||
d.addToList[sorted, w]
|
||||
}
|
||||
|
||||
most = sort[toArray[d], {|a,b| length[b@1] <=> length[a@1]}]
|
||||
longest = length[most@0@1]
|
||||
|
||||
i = 0
|
||||
while length[most@i@1] == longest
|
||||
{
|
||||
println[most@i@1]
|
||||
i = i + 1
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue