ps3, problem 2
What are other approaches for solving problem 2 in ps3?
MIT 6.00 Intro Computer Science (OCW)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Thank you very much
TypeError: bad operand type for unary +: 'tuple'
Not the answer you are looking for? Search for more explanations.
do you know how to fix it?
That what was killing in the first place. Well, I was trying not exactly the same way, but there were similar type error
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)
.. you Can write either an iterative or recursive solution
your last function return wrong answer
yes, I can agree it was stupid to spend 2 days trying to find unnecessary extrasolution
yep - i was flirting with processing the result after the fact, while wrong the information is there. http://pastebin.com/jLEMVG38