vaboro
  • vaboro
Gosh! Finally finished problem set 2. Here is my ps2b.py code. Somehow it was more challenging than I expected. I spent couple of days solving the problem. Would appreciate your comments. http://pastebin.com/wkWxHy5v
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
The only thing I would add is that you do not need to check each coefficient up to the number of nuggets. For instance, if you were trying to buy 100 nuggets with 20 piece boxes. You do not need to try 20 * 100. Only up to 20 * 5. This will reduce the amount of calculations needed when there isn't a solution.
vaboro
  • vaboro
thank you, xhaereticusx, I will have a look at it appreciate very much

Looking for something else?

Not the answer you are looking for? Search for more explanations.