Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Golf for unique digits

by Cody Fendant (Friar)
on Jan 09, 2013 at 11:24 UTC ( #1012437=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $y = 2013;
    ($y = join('',sort(split(//,$y)))) =~ tr/0-9//s;
    print "unique digits: " .  length($y) . $/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1012437]
Approved by Ratazong
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-12-11 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (312 votes). Check out past polls.

    Notices?