Leapfrogging by twobit

while""do
a=io.read()p=1
for c=1,#a do
i=a:find(c)i=i<p and i or i+1
io.write(i<p and"<"or">",((p-i)^2)^.5)p=i
end
print()end

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

download

return to the top page