Skip to content

Conversation

@AlisonZ
Copy link

@AlisonZ AlisonZ commented Apr 6, 2017

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? Yep!
How do you feel about tracing recursive problems? (good, bad, ugly, neutral) Neutral
Would you like help/follow up about recursion? No thanks

Copy link

@sudocrystal sudocrystal left a comment

Choose a reason for hiding this comment

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

If you did work on the couple that I marked as incorrect that you want me to look at, I can.

- What is mystery2(123)?
- What is mystery2(9005)?
- What is mystery2(-123)?
- What is mystery2(123)? 11

Choose a reason for hiding this comment

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

Double check this one - it's wrong.

- What is mystery2(-123)?
- What is mystery2(123)? 11
- What is mystery2(9005)? 14
- What is mystery2(-123)? infinite loop/stack too deep

Choose a reason for hiding this comment

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

This one is also not correct.

- What is mystery5("")?
- What is mystery5("Hi, there!")?
- What is mystery5("hi")? **
- What is mystery5("")? empty

Choose a reason for hiding this comment

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

"" (empty string)

@sudocrystal
Copy link

Recursion Tracing

A couple to double check, but mostly good :)

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