Skip to content

Conversation

@gofarann
Copy link

Recursion Tracing

Thanks for doing some brain yoga. You are now submitting this assignment!

Comprehension Questions

Question Answer
Did you define all the recursion terms? oops, I went back and
How do you feel about tracing recursive problems? (good, bad, ugly, neutral) neutral, #6 was difficult, but I think that was due to my limited computation capacity.
Would you like help/follow up about recursion? more problems would be great.

- Recursion: method calling itself.
- Recursive Case: a case that would cause the method to run itself
- Base Case: the case that would cause the method to stop
- Activation Chain/Stack: how the recursive method goes to the base case

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... this definition seems weird to me. Perhaps, "it traces each method call as it gets to the base case"

- What is mystery6("Hi, there!")?
- What is mystery6("goodnight moon")? "moon goodnight"
- What is mystery6("Ada Developers Academy")? "academy developers ada"
- What is mystery6("Hi, there!")? "there! hi"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor error, but notable: there should be a leading space on each of the answers " moon goodnight", " academy developers ada", " there! hi,"

@sudocrystal
Copy link

Recursion Tracing

Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants