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

def fibonacci(n) #477

Open
Tfunded opened this issue Jan 27, 2024 · 0 comments
Open

def fibonacci(n) #477

Tfunded opened this issue Jan 27, 2024 · 0 comments

Comments

@Tfunded
Copy link

Tfunded commented Jan 27, 2024

def fibonacci(n)
return n if ( 0..1 ).include? n
(fibonacci(n - 1) + fibonacci(n - 2)) #recursive calls
end

Originally posted by @Tfunded in https://github.com/Tfunded/silver-trezor/issues/2#issuecomment-1265260349

_Originally posted by @Tfunded in https://github.com/Silver-Trezor/silver-trezor

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

No branches or pull requests

2 participants
@Tfunded and others