8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f4cc7 commit d154015Copy full SHA for d154015
src/algorithms/math/fibonacci/fibonacci.js
@@ -18,7 +18,7 @@ export default function fibonacci(n) {
18
19
while (iterationsCounter) {
20
currentValue += previousValue;
21
- previousValue = (currentValue - previousValue);
+ previousValue = currentValue - previousValue;
22
23
fibSequence.push(currentValue);
24
src/algorithms/math/fibonacci/fibonacciNth.js
@@ -16,7 +16,7 @@ export default function fibonacciNth(n) {
16
17
iterationsCounter -= 1;
}
0 commit comments