6 kyu
Fibonacci Generator Function
329vy1701
Description:
This is a simple Kata to test your knowledge of generators. You will create a generator function which produces a fibonacci sequence. The first number in the sequence is 0. The next number in the sequence is 1. Each subsequent number is the summation of the previous two numbers. The next number after 1 would be 1 because 0 + 1 = 1. The next number would be 2 because 1 + 1 = 2.
The fibonacci sequence starts at zero, calling fib.next() should step through the next number in the fibonacci sequence and fib.next().value will step through and produce the value.
Refactoring
Similar Kata:
Stats:
Created | Feb 16, 2017 |
Published | Feb 16, 2017 |
Warriors Trained | 660 |
Total Skips | 4 |
Total Code Submissions | 764 |
Total Times Completed | 329 |
JavaScript Completions | 329 |
Total Stars | 14 |
% of votes with a positive feedback rating | 92% of 102 |
Total "Very Satisfied" Votes | 89 |
Total "Somewhat Satisfied" Votes | 10 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 10 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 7 kyu |