Skip to content

Commit f6c6440

Browse files
Dheeraj Kumar BarnwalDheeraj Kumar Barnwal
Dheeraj Kumar Barnwal
authored and
Dheeraj Kumar Barnwal
committed
Corrected method call
1 parent 8b29c6c commit f6c6440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dynamic Programming/Fibonacci.java

Lines changed: 1 addition & 1 deletion
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)