From f6c64409c0f794e0dd5c3a8787a6dcacddcce636 Mon Sep 17 00:00:00 2001 From: Dheeraj Kumar Barnwal Date: Sun, 1 Oct 2017 22:55:25 +0530 Subject: [PATCH] Corrected method call --- Dynamic Programming/Fibonacci.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dynamic Programming/Fibonacci.java b/Dynamic Programming/Fibonacci.java index 72048153..17c11d8d 100644 --- a/Dynamic Programming/Fibonacci.java +++ b/Dynamic Programming/Fibonacci.java @@ -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); }