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

For PSet8, dpadvisor...... I am having a hard time returning a map of each subject. I have been printing with_i and i throughout the modified code in class lecture on a small subset of 'subjects', but I am unable to get a correct mapping. Was hoping maybe someone could explain the logic of when I should be adding i to the list index? (hopefully I make sense.....) thanks!

OpenStudy (anonymous):

i did not understand ur question u want to know about link list?

OpenStudy (anonymous):

I'm probably not being clear because I'm struggling with this dpadvisor part of PS8. So far I have simply manipulated the formula given in the hand out fastMaxValue to be able to return the maximum value of a course given the 'max work'. However in order to solve the problem I need to return a list of the subjects (or index i) that is used to calculate the maxValue. How are people going about this? When should I be adding 'i' to the list so I get a unique set?

OpenStudy (anonymous):

nevermind I got too frustrated and looked at some old posts with code. Thanks to those who posted code for this problem!

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!