Skip to content

Commit 76b130e

Browse files
Merge pull request TheAlgorithms#119 from dheeraj92/master
Corrected method call
2 parents d63dbb1 + f6c6440 commit 76b130e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dynamic Programming/Fibonacci.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static int fibMemo(int n) {
4040
f = 1;
4141
}
4242
else {
43-
f = fib(n-1) + fib(n-2);
43+
f = fibMemo(n-1) + fibMemo(n-2);
4444
map.put(n,f);
4545
}
4646

0 commit comments

Comments
 (0)