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

add example #13

Closed
wants to merge 2 commits into from
Closed

add example #13

wants to merge 2 commits into from

Conversation

ravilushqa
Copy link
Owner

@ravilushqa ravilushqa commented May 7, 2023

Added a new package "fibonacci" with a function "fibonacci" that calculates the nth Fibonacci number using recursion with a base case of n <= 1 and a recursive case of n-1 and n-3.

@ravilushqa ravilushqa self-assigned this May 7, 2023
@@ -0,0 +1,8 @@
package fibonacci

Copy link

Choose a reason for hiding this comment

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

[bug] The recursive call to fibonacci function should be fibonacci(n-2) instead of fibonacci(n-3).

Repository owner deleted a comment from github-actions bot May 7, 2023
@ravilushqa ravilushqa closed this May 22, 2023
@ravilushqa ravilushqa deleted the example branch May 22, 2023 12:17
@ravilushqa ravilushqa restored the example branch May 22, 2023 12:19
@ravilushqa ravilushqa deleted the example branch May 22, 2023 12:19
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.

1 participant