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

Can anyone give an example of a solution to pset8 problem 2? I keep wanting to copy the subjects to a list for sorting, but that seems wrong.

OpenStudy (anonymous):

I actually solved using that way, seemed more efficient. Can you paste your code to codepad? Maybe I can help you out, better than seeing other people's code, IMHO.

OpenStudy (anonymous):

Thats what I did as well. Post up your code!

OpenStudy (anonymous):

Post coming later tonight. Thanks for the replies!

OpenStudy (anonymous):

Took a while, but here's the pastebin. Much of this is pseudo-code. I'm trying to figure out the problem. This function obviously involves more than just a greedy algorithm. http://pastebin.com/uBwQdrap

OpenStudy (anonymous):

BWCA - thank you! This changes EVERYTHING. :D

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!