September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
15
Task/Ordered-words/SPL/ordered-words.spl
Normal file
15
Task/Ordered-words/SPL/ordered-words.spl
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
words = #.split(#.readtext("unixdict.txt","ascii"),#.lf)
|
||||
max = 0
|
||||
> i, 1..#.size(words,1)
|
||||
word = words[i]
|
||||
wordb = #.array(word)
|
||||
wordbc = #.size(wordb,1)
|
||||
> j, 3..wordbc,2
|
||||
<< wordb[j]<wordb[j-2]
|
||||
<
|
||||
>> j!>wordbc|wordbc<max
|
||||
? wordbc>max, result = ""
|
||||
? wordbc>max, max = wordbc
|
||||
result += word+#.crlf
|
||||
<
|
||||
#.output(result)
|
||||
Loading…
Add table
Add a link
Reference in a new issue