Sort by Length for OCaml Golf Competition by yamaya

t=table
for i in io.lines()do t:insert(("0"..#i):sub(-2)..i)end
t:sort()print(t:concat"/":gsub("/..","\n"):sub(3))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page