Reverse BWT by irori

#!ruby -p
n,*s=scan /.* |./
r=*0..39
$_=s.map{c,n=s.zip(r).sort[n.to_i];c},$/

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

download

return to the top page