Skip to content

Conversation

@dri19tcc
Copy link

@dri19tcc dri19tcc commented May 2, 2016

I did not have time to complete travel(x,y), was able to finish fibonacci and palindromes

return n if n == 1 || n == 0
fibonacci = fib(n - 1) + fib(n - 2)
return fibonacci
end

Choose a reason for hiding this comment

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

This works. I think here we don't need to store the result in fibanacci but instead could just return the value right away

@sudocrystal
Copy link

👍

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