Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Generate all unique combinations of 1 and 0 using specified length of "0"-string and count of 1's -- permutationsby Discipulus (Canon) |
on Sep 18, 2020 at 08:35 UTC ( [id://11121897]=note: print w/replies, xml ) | Need Help?? |
UPDATE this code is wrong as noticed by choroba and hippo. See below why
Hello Eily,
L*I find even more intuitive to use permutations directly:
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|