Draft
Efficient recursive fibonacci
Description:
Calculating the n-th element of the fibonacci sequence is usually calculated recursively using a top down approach that causes the repeated calculation of certain elements in the sequence. The resulting function is useful only for a small n. Using iteration it is possible to calculate the sequence more efficiently because it induces the use of a bottom up approach that retains the information required to calculate the next element in the sequence. The same can be done using recursion and a helper function. Write the recursive helper function. The function should work for n = 500
Mathematics
Recursion
Similar Kata:
Stats:
Created | Dec 18, 2017 |
Warriors Trained | 141 |
Total Skips | 32 |
Total Code Submissions | 196 |
Total Times Completed | 31 |
Python Completions | 31 |
Total Stars | 0 |
% of votes with a positive feedback rating | 57% of 20 |
Total "Very Satisfied" Votes | 10 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 7 |
Total Rank Assessments | 19 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |