Skip to content

Commit 86cc046

Browse files
authored
Update 85-3.py
1 parent 2def577 commit 86cc046

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

5-algorithms/ch23/85-3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Solution:
55
dp = collections.defaultdict(int)
66

77
def fib(self, N: int) -> int:
8+
self.dp[0] = 1
89
self.dp[1] = 1
910

1011
for i in range(2, N + 1):

0 commit comments

Comments
 (0)