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

can somebody tell me what the answere is for ps2 problim 4 ? i want to know what's the number that is supposed to appear.

OpenStudy (anonymous):

Using the (6,9,20) test case, it should be 43, if I recall correctly. Anyway, it should match your prior solution.

OpenStudy (anonymous):

43 is the answer I got as well.

OpenStudy (anonymous):

thanks guys

OpenStudy (anonymous):

i feel stupid but ...what's the difference between problim 3 and problim 4 of ps2?

OpenStudy (anonymous):

how did you get the solution ?

OpenStudy (anonymous):

The problem 3 asks you to implement a program that returns the biggest number that is impossible to buy given packages of size 6, 9, and 20 (hard-coded in your program). Problem 4 asks you to generalize this program, and ask for input for sizes <X> <Y> <Z>, and then find the biggest number that is impossible to buy. I got the solution using my implementation of the program :-)

OpenStudy (anonymous):

thank you so very much(:

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!
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!