Images, snippets, snapshots, math

View Gabriele Lami's profile on LinkedIn

sabato 4 ottobre 2008

Code reduction ( obfuscation in ruby code )

This ruby code is equivalent to the code in previous post


N = 13; k = N-1; r = (1..k).to_a ; e = [r.first, r.last];
r.each{a print(r.map{b e.include?(b*a%N)?"1 ":" "},"\n")}

Nessun commento: