Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-28 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found