Keep It Simple, Stupid | |
PerlMonks |
Re^4: How to generate restricted partitions of an integerby borisz (Canon) |
on Nov 11, 2004 at 14:36 UTC ( [id://407050]=note: print w/replies, xml ) | Need Help?? |
Sorry, I can not express it any better. Look at the example please. The answer, 50 is correct. I think 'How many ways' is good. Just search for any combination of 100, 50, 20 , 10 and 5 euro notes where the sum is 100 without repeating a combination. I hope it is clearer to you now.
Boris
In Section
Seekers of Perl Wisdom
|
|