From 47055d63a1acf9f6a4879dc7d24cd14c247386a5 Mon Sep 17 00:00:00 2001 From: Arvind Shelke Date: Tue, 12 Aug 2025 17:12:35 +0530 Subject: [PATCH] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7582e26..2a7e8ed 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,7 @@ def nth_fibonacci_util(n, memo): # Base case: if n is 0 or 1, return n if n <= 1: - return n + return m # Check if the result is already in the memo table if memo[n] != -1: