Think about Loose Coupling | |
PerlMonks |
Re^3: Combinatorics problem.by hdb (Monsignor) |
on Dec 11, 2015 at 09:34 UTC ( [id://1150003]=note: print w/replies, xml ) | Need Help?? |
You are looking for Composition_(combinatorics) and need to filter on the number of parts (after taking away 1 postcard for each pidgeon hole as suggested below). I have not found any code on CPAN for this. The bad news is that there are exponentially many compositions for a given number of postcards.
In Section
Seekers of Perl Wisdom
|
|