Skip to content

Commit

Permalink
Corrected method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Dheeraj Kumar Barnwal authored and Dheeraj Kumar Barnwal committed Oct 1, 2017
1 parent 8b29c6c commit f6c6440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dynamic Programming/Fibonacci.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static int fibMemo(int n) {
f = 1;
}
else {
f = fib(n-1) + fib(n-2);
f = fibMemo(n-1) + fibMemo(n-2);
map.put(n,f);
}

Expand Down

0 comments on commit f6c6440

Please sign in to comment.