Skip to content

Commit 47055d6

Browse files
authored
Update main.py
1 parent 78a3159 commit 47055d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def nth_fibonacci_util(n, memo):
1818

1919
# Base case: if n is 0 or 1, return n
2020
if n <= 1:
21-
return n
21+
return m
2222

2323
# Check if the result is already in the memo table
2424
if memo[n] != -1:

0 commit comments

Comments
 (0)