Sharkovskii order by shinh

puts$<.sort_by{|v|"%026b"%v=~/(^0*|)10*$/
[$1,$&,$`]}

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

download

return to the top page