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

Did I approach problem set 2.4 right? my code (http://codepad.org/6vbx5xWn) seems very inefficient. I'm not sure I understood what they were looking for and would appreciate any opinions or alternate approaches.

OpenStudy (anonymous):

looks like it should work, i didn't try it. generally that's what most people come up with. i saw one solution that started at 100 and went backwards till it found one that couldn't be bought, which was slick but you had to guess where to start to get it right and sometimes you can't afford to guess seems like you don't need line 32 because of line 38. 17, 20, 23 could be solutionFound = True and then 30 could be "if solutionFound" - actually even using one's and zeroes, line 30 could be "if solutionFound" http://docs.python.org/library/stdtypes.html#truth-value-testing

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
Breathless: Spooky witch but cute
6 hours ago 3 Replies 0 Medals
Arriyanalol: help
6 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
9 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
9 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
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!