in reply to Decimal Gray Code in 31 chars
From your 35
perl -e'print(($_^$_>>1).$/)for(0..pop)' 15 12345678901234567890123456789012345
I shave 6 off
perl -le'print$_^$_>>1 for 0..pop' 15 12345678901234567890123456789
3 more if 5.10+
perl -E'say$_^$_>>1 for 0..pop' 15 12345678901234567890123456
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Decimal Gray Code in 31 chars
by locked_user mtve (Deacon) on Jan 19, 2010 at 10:46 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 13:33 UTC | |
|
Re^2: Decimal Gray Code in 31 chars
by ambrus (Abbot) on Jan 19, 2010 at 11:13 UTC | |
by Anonymous Monk on Jun 12, 2010 at 06:56 UTC |