All Questions
Tagged with fibonacci-sequence ruby
5 questions
3
votes
2
answers
643
views
Finding the nth Fibonacci number using recursive technique
EDIT
So I've been working on this according to the challenge @PeterTaylor gave me. I'm not very good at math, so I've been doing a lot of reading and found this link on the Binet form. Fibonacci ...
6
votes
3
answers
1k
views
Wascally Wabbits
This question is part of a series solving the Rosalind challenges. For the previous question in this series, see Mendelian inheritance. The repository with all my up-to-date solutions so far can be ...
1
vote
1
answer
171
views
Select the element out of the array if its index is a Fibonacci number [closed]
I've some questions for an exam and wondered if somebody could take a look at my Fibonacci sequence that is supposed to answer this question:
"select the element out of the array if its index is a ...
6
votes
2
answers
152
views
Data-structure exploration
On my quest to learn Ruby I figured exploring the proper usage of different data-structures would be invaluable, including strings, arrays and hashes.
I decided to build a hash containing the numbers ...
4
votes
2
answers
4k
views
Ruby Fibonacci(n) recursive computation optimized with reflection
The idea is to take the common-known (and awfully bad performing) Fibonacci(n) recursive method:
...