We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d63dbb1 + f6c6440 commit 76b130eCopy full SHA for 76b130e
Dynamic Programming/Fibonacci.java
@@ -40,7 +40,7 @@ public static int fibMemo(int n) {
40
f = 1;
41
}
42
else {
43
- f = fib(n-1) + fib(n-2);
+ f = fibMemo(n-1) + fibMemo(n-2);
44
map.put(n,f);
45
46
0 commit comments