6 kyu
Complete Fibonacci Series
2,124 of 3,238akp
Description:
The function 'fibonacci' should return an array of fibonacci numbers. The function takes a number as an argument to decide how many no. of elements to produce. If the argument is less than or equal to 0 then return empty array
Example:
fibonacci(4) // should return [0,1,1,2]
fibonacci(-1) // should return []
Algorithms
Similar Kata:
Stats:
Created | Sep 18, 2013 |
Published | Sep 18, 2013 |
Warriors Trained | 4959 |
Total Skips | 352 |
Total Code Submissions | 11018 |
Total Times Completed | 3238 |
JavaScript Completions | 2124 |
Ruby Completions | 97 |
Python Completions | 1056 |
Total Stars | 58 |
% of votes with a positive feedback rating | 93% of 461 |
Total "Very Satisfied" Votes | 402 |
Total "Somewhat Satisfied" Votes | 53 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 15 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 6 kyu |