Skip to content

Commit 3c3d0f8

Browse files
committed
Merge branch 'add_fibnaci' of https://github.com/08183080/Python into add_fibnaci
2 parents c25c1f0 + 3601683 commit 3c3d0f8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

maths/fibonacci.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,11 @@ def fib_binet(n: int) -> list[int]:
212212
return [round(phi**i / sqrt_5) for i in range(n + 1)]
213213

214214

215-
216-
217215
if __name__ == "__main__":
218216
num = 30
219217
time_func(fib_iterative, num)
220218
time_func(fib_recursive, num) # Around 3s runtime
221219
time_func(fib_recursive_cached, num) # Around 0ms runtime
222220
time_func(fib_memoization, num)
223221
time_func(fib_binet, num)
224-
time_func(fib_iterative_yield, num)
225-
222+
time_func(fib_iterative_yield, num)

0 commit comments

Comments
 (0)