3 ms·
Simple Perl solution, using string/numeric coercion. Don't think there's anything here you couldn't do in C. Uses a 30-item lookup table. I've made it round, ra
by peteretep 14y ago
Simple Perl solution, using string/numeric coercion. Don't think there's anything here you couldn't do in C. Uses a 30-item lookup table. I've made it round, rather than adding precision logic for recurring 3s...
https://gist.github.com/3206885 https://gist.github.com/3206885