Skip to content

Commit 15b1a67

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 451c97d commit 15b1a67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

maths/fibonacci.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def fib_iterative(n: int) -> list[int]:
8686
for _ in range(n - 1):
8787
fib.append(fib[-1] + fib[-2])
8888
return fib
89+
90+
8991
def fib_recursive(n: int) -> list[int]:
9092
"""
9193
Calculate the first n (0-indexed) Fibonacci numbers using recursion.
@@ -108,6 +110,7 @@ def fib_recursive(n: int) -> list[int]:
108110
...
109111
ValueError: n is negative
110112
"""
113+
111114
def fib_recursive_term(i: int) -> int:
112115
if i < 0:
113116
raise ValueError("n is negative")

0 commit comments

Comments
 (0)