Ordered words: Difference between revisions
→{{header|Ring}}
Thundergnat (talk | contribs) m (→{{header|Ring}}: needs improvement) |
|||
Line 3,546:
=={{header|Ring}}==
<lang ring>
load "stdlib.ring"
cStr = read("unixdict.txt")
wordList = str2list(cStr)
sum = 0
sortList = []
see "working..." + nl + nl
Line 3,566 ⟶ 3,567:
ok
next
if num = len
sum = sum + 1
ok
next
sortList = sort(sortList,2)
sortList = reverse(sortList)
len = sortList[1][2]
for n = 1 to len(sortList)
if sortList[n][2] = len
see sortList[n][1] + nl
ok
next
see nl + "done..." + nl
</lang>
Line 3,577 ⟶ 3,590:
working...
almost
biopsy
done...
|