Skip to content

Commit

Permalink
PEP style
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysharma096 committed Sep 26, 2016
1 parent a3c5167 commit 2dcb85d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dynamic_programming/fibonacci.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


class Fibonacci:

def __init__(self, N=None):
if N:
N = int(N)
Expand All @@ -12,7 +13,7 @@ def __init__(self, N=None):
self.fib_array[1] = 1
for i in range(2, N + 1):
self.fib_array[i] = self.fib_array[
i - 1] + self.fib_array[i - 2]
i - 1] + self.fib_array[i - 2]
else:
self.fib_array = [None] * (N + 1)

Expand Down

0 comments on commit 2dcb85d

Please sign in to comment.