mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-06 00:54:32 +08:00
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user