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

In Problem Set 8 problem number 4, I can get the maximum value that can be obtained but can't get a map of the items .

OpenStudy (anonymous):

You should have three dictionares (in my code Inamed them path1,path2 and path) path1you will save the items of the "don't take", path2 you will save the items of "take".Then you compare them, the best one you equalize to path

OpenStudy (anonymous):

By the way, I had a really hard time with this problem :D

OpenStudy (anonymous):

well , Are you sure? because I tried this and it didn't work . I mean both dictionaries will include items that shouldn't be there :D

OpenStudy (anonymous):

Can I see your code plz :D ?

OpenStudy (anonymous):

If you don't understand somethig, fell free to ask (I'm saying that because I didn't put comments on the code, sorry about that) http://codepad.org/IbYI0QjA

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!