Leapfrogging by whatisgolf

while 1:s=`input()`;i=c=0;exec"c+=1;d=s.find(`c`)-i;d+=d>=0;s+='<>'[d>0]+`d`[-1];i+=d;"*len(s);print s[c:]

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

download

return to the top page