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

ps3, problem 2 Hello What are other approaches for solving problem 2 in ps3? http://dpaste.com/hold/693698/

OpenStudy (anonymous):

http://dpaste.com/693796/

OpenStudy (anonymous):

Thank you very much

OpenStudy (anonymous):

subStringMatchExact1 returns TypeError: bad operand type for unary +: 'tuple'

OpenStudy (anonymous):

do you know how to fix it?

OpenStudy (anonymous):

Actually, no That what was killing in the first place. Well, I was trying not exactly the same way, but there were similar type error

OpenStudy (anonymous):

http://dpaste.com/693951/

OpenStudy (anonymous):

So, as I wrote in another question, I've spent 2 day in tuples, strings and recursion and did not come up with answer. So now I am starting to suspect that words 'These problems can be solved with either an iterative function or a recursive one' were just exaggeration (regarding to problem2) .

OpenStudy (anonymous):

.. you Can write either an iterative or recursive solution

OpenStudy (anonymous):

your last function return wrong answer

OpenStudy (anonymous):

yes, I can agree it was stupid to spend 2 days trying to find unnecessary extrasolution

OpenStudy (anonymous):

yep - i was flirting with processing the result after the fact, while wrong the information is there. http://pastebin.com/jLEMVG38

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!