Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Generate all unique combinations of 1 and 0 using specified length of "0"-string and count of 1's

by Lana (Beadle)
on Sep 18, 2020 at 03:17 UTC ( #11121888=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1110000000
    1101000000
    1100100000
    ...
    0000010011
    0000001011
    0000000111
    
  2. or download this
    sub GenUniStrings {
      my ($OnesCount, $ZeroStrLn) = @_;
      
    ...
    
    }
    GenUniStrings(3,25);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11121888]
Approved by GrandFather
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2022-12-09 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?