looping through possible combinations of McNuggets packs of 6, 9 and 20

Giacomo Boffi giacomo.boffi at polimi.it
Tue Aug 17 04:48:51 EDT 2010


Paul Rubin <no.email at nospam.invalid> writes:

> Baba <raoulbia at gmail.com> writes:
>> exercise: given that packs of McNuggets can only be bought in 6, 9 or
>> 20 packs, write an exhaustive search to find the largest number of
>> McNuggets that cannot be bought in exact quantity.
>
> Is that a homework problem?

yes, and no

it was a homework problem, assigned in 2008, as clearly stated by the OP

most of what was discussed on the ng was clearly stated in the
introduction to the actual problem, so that we can thank Baba for NOT
having read the text of the assignment, leavin' us a couple of days of
amusing and interesting posts
-- 
Mangiate pure le vostre carote, noi mangeremo le nostre salsicce!
                                                   -- Claud,   in IHC



More information about the Python-list mailing list