Skip to content

Commit 76b130e

Browse files
Merge pull request TheAlgorithms#119 from dheeraj92/master
Corrected method call
2 parents d63dbb1 + f6c6440 commit 76b130e

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy