Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 11 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
Countless7Echos: Ah trying out the whole T.V girl drawing :p (I love drawing eyes)
39 minutes ago 7 Replies 4 Medals
kaelynw: starting to draw a hand
1 day ago 16 Replies 2 Medals
Twaylor: Rate it :D (Took 2 days)
2 days ago 7 Replies 0 Medals
XShawtyX: Art, Short Writing Assignment: Imagining Landscapes
1 hour ago 7 Replies 1 Medal
XShawtyX: Chemistry, Help ud83dude4fud83cudffe
3 days ago 13 Replies 1 Medal
kaelynw: tried a lil smt, the arm is off but i like the other stuff
3 days ago 27 Replies 3 Medals
kaelynw: art igg
3 days ago 14 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!