Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recursion Tracing
Thanks for doing some brain yoga. You are now submitting this assignment!
Comprehension Questions
Recursion - A method calling itself.
Recursive Case - The case in which the "itself" is known.
Base Case - A case to ensure the recursive method can be exited. Recursive should always be heading toward base case.
Activation Chain/Stack The stored results of every call.
Activation Record/Call Each time the method references itself.
Infinite Recursion/Stack Overflow/Stack too deep - The method never exits as the base case isn't achievable.
Trace #1a - 15
Trace #1b - 55
Trace #1c - Infinite Recursion
Trace #2a - 8
Trace #2b - 14
Trace #2c - (123)
Trace #3a - 100
Trace #3b - 100
Trace #3c - 200
Trace #4a - 100
Trace #4b - 64
Trace #4c - 5
Trace #5a - *i
Trace #5b - “”
Trace #5c - *i, there!