Corrected method call
This commit is contained in:
parent
8b29c6ca1d
commit
f6c64409c0
@ -40,7 +40,7 @@ public class Fibonacci {
|
||||
f = 1;
|
||||
}
|
||||
else {
|
||||
f = fib(n-1) + fib(n-2);
|
||||
f = fibMemo(n-1) + fibMemo(n-2);
|
||||
map.put(n,f);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user