Skip to content

Commit 9fb02d3

Browse files
authored
Merge pull request loiane#210 from JackZong/fix/remove_useless_argument
fix(example): remove useless argument
2 parents 0d56427 + 0da564f commit 9fb02d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chapter09/04-Fibonacci.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function fibonacciMemoization(n) {
3030
const memo = [0, 1];
3131
const fibonacci = (n) => {
3232
if (memo[n] != null) return memo[n];
33-
return memo[n] = fibonacci(n - 1, memo) + fibonacci(n - 2, memo);
33+
return memo[n] = fibonacci(n - 1) + fibonacci(n - 2);
3434
};
3535
return fibonacci(n);
3636
}

0 commit comments

Comments
 (0)