in reply to Digit Density
The rest is up to you. I'm just golfing the actual tallying.$_=join'',<>; @p=(0)x10; $p[$&]++for/\d/g;
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Digit Density
by termix (Beadle) on Dec 27, 2001 at 21:40 UTC |