Maximum Cyclic Segment Sum by ksk

#!ruby -na
puts$F.map{c=a=0,b=[]
($F<<$F.shift).map{|x|a,b=[[a+x.hex,b+[x]],c].max}.max}.max[1]*" "

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

download

return top