Peak Detection by murky-satyr

for(c=[];$=readline();)c.push($)
for(i=0;L=R=x=c[l=r=i++];print(L+R?x:x+'*')){for(;(y=x-c[--l])>0;)y>9?L=l=0:0;for(;r&&(z=x-c[++r])>0;)z>9?R=r=0:0}

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

download

return to the top page