Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^7: list of four digit lock combinations without repeated digits

by BrowserUk (Patriarch)
on Jun 22, 2018 at 06:12 UTC ( [id://1217160]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @x = map join( '', @$_ ), variations_with_repetition( ["a".."z"], 4
    + );;
    
    print scalar @x;;
    456976
    
  2. or download this
    [ 7:10:21.87] C:\test>perl -MAlgorithm::Combinatorics=:all -le"print s
    +calar( () = variations_with_repetition( ["a".."z"], $ARGV[0] ) )" 4
    456976
    
    [ 7:10:27.12] C:\test>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-23 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found