Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursion base case may not always be useful even if it's logically valid for the base case, is this true? #9

Open
sanjarcode opened this issue Apr 24, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@sanjarcode
Copy link
Member

sanjarcode commented Apr 24, 2022

This may make writing recursive functions more involved, and less obvious. Basically it'll add need for a basic test of whether the base case is valid for some cases.

This is undesirable, if true.

@sanjarcode
Copy link
Member Author

sanjarcode commented Apr 24, 2022

A problem that has a base case that needs extra observations/test.

Screenshot_20220424-115116_Gallery.png

Screenshot_20220424-115118_Gallery.png

Screenshot_20220424-115120_Gallery.png

Screenshot_20220424-115127_WhatsApp.png

@sanjarcode
Copy link
Member Author

In short, are non-intuitive base cases in recursion possible?

@sanjarcode sanjarcode added the bug Something isn't working label Apr 24, 2022
@sanjarcode sanjarcode self-assigned this Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant