Hi folks. I'm really having a lot of trouble understanding the pseudocode for problem 4 in PS4, MIT OCW 6.00SC. I suspect the problem is I don't fully understand recursion. Please can anyone explain the pseudocode to me? Appreciate this is a big ask and kind of an expansive question but would really appreciate any help. Thanks, Hugh
I'm not in the class, but I can help. If you can show me your pseudocode as an attachment or paste it into a post, I can go over it.
Thanks, that's really kind. The first part of the assignment was to create pseudocode to solve the problem. I didn't grasp the specification so well so my pseudocode wasn't up to scratch. To code the solution I'm using the provided pseudocode and the associated explanation, which don't make much sense to me. However I've "taken their word for it" that the pseudocode will work and have started coding based on faith. I'm attaching the pseudocode / conceptual solution and my function so far. Thanks in anticipation.
I'm sorry, I'm not really familiar with this syntax. I don't think I'll be able to help you in a sufficient amount of time :/
What language is this written in?
OK, thanks anyway. It's Python.
Join our real-time social learning platform and learn together with your friends!