Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by BrowserUk (Pope)
on Jun 22, 2018 at 06:12 UTC ( #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
Node Status?
node history
Node Type: note [id://1217160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2019-06-19 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (88 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!