Skip to content

Commit 2dcb85d

Browse files
PEP style
1 parent a3c5167 commit 2dcb85d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎dynamic_programming/fibonacci.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
classFibonacci:
7+
78
def__init__(self, N=None):
89
ifN:
910
N=int(N)
@@ -12,7 +13,7 @@ def __init__(self, N=None):
1213
self.fib_array[1] =1
1314
foriinrange(2, N+1):
1415
self.fib_array[i] =self.fib_array[
15-
i-1] +self.fib_array[i-2]
16+
i-1] +self.fib_array[i-2]
1617
else:
1718
self.fib_array= [None] * (N+1)
1819

0 commit comments

Comments
(0)