Prerequisites
Improvement Description
The readme for this exercise explicitly says that
In this exercise, the Fibonacci sequence used is 1, 1, 2, 3, 5, 8, etc.
But the solution included in this exercise starts the count from 0, the first number (secondPrev) being 0 and the current number (firstPrev) being 1.
let firstPrev = 1;
let secondPrev = 0;
for (let i = 2; i <= count; i++) {
let current = firstPrev + secondPrev;
secondPrev = firstPrev;
firstPrev = current;
}
Unless I am just not understanding the solution well, I think this could confuse learners that might have expected to see the solution use the same sequence as instructed in the readme.
Acceptance Criteria
(Optional) Additional Comments
No response
Prerequisites
<Location of the improvement>: <Brief description of the improvement>format, e.g.Exercises: Add exercise on XYZImprovement Description
The readme for this exercise explicitly says that
But the solution included in this exercise starts the count from 0, the first number (
secondPrev) being 0 and the current number (firstPrev) being 1.Unless I am just not understanding the solution well, I think this could confuse learners that might have expected to see the solution use the same sequence as instructed in the readme.
Acceptance Criteria
(Optional) Additional Comments
No response