Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 29 Online
OpenStudy (anonymous):

I just finished PS2a(after a long long time), but just want to make sure it looks right. And if anyone has any input. http://dpaste.com/604150/ Thanks

OpenStudy (anonymous):

I'm still working on PS1, but I'll look at your code after I've moved on to PS2.

OpenStudy (anonymous):

looks good to me ... it produces the correct answer

OpenStudy (anonymous):

Thank you, I worked on that for a while.

OpenStudy (anonymous):

Hi CastorTroy, how did you derive your algorithm? It seems better than mine.

OpenStudy (anonymous):

Hi, sorry for the late reply...I haven't looked at this in a while. I worked for a long time trying so many different ways of solving this problem. First I made a list that puts all the combinations that can be bought into one list. Then, If the number isn't in that list it goes into a second list, which is then a list of all the combinations that can't be bought. it seemed simple after I did it, but I had a bit of trouble with this one.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Lilmunchin: Trump or Biden
1 minute ago 14 Replies 1 Medal
ARTSMART: Art!
34 minutes ago 5 Replies 4 Medals
Jasonisyours: What were the key causes of the French Revolution in 1789?
28 minutes ago 3 Replies 5 Medals
PureSoulless: Why is the word "Pedophile" always censored in yt vids?
1 day ago 3 Replies 0 Medals
Jalli: What's 58x3634u00b07
22 hours ago 6 Replies 3 Medals
arriya: who wanna play roblox
1 day ago 5 Replies 1 Medal
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!