Skip to content

Commit 8bf1389

Browse files
committed
Done with the required changes
1 parent 8085e66 commit 8bf1389

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

maths/fibonacci.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def matrix_mult_np(a, b):
250250
return np.dot(a, b)
251251

252252

253-
def matrix_pow_np(m, power):
253+
def matrix_pow_np(m: int, power: int) -> int:
254254
"""
255255
Raises a matrix to the power of 'power' using binary exponentiation.
256256
@@ -294,10 +294,6 @@ def fib_matrix_np(n: int) -> int:
294294
5
295295
>>> fib_matrix_np(10)
296296
55
297-
>>> fib_matrix_np(-1)
298-
Traceback (most recent call last):
299-
...
300-
Exception: n is negative
301297
"""
302298
if n < 0:
303299
raise ValueError("n is negative")

0 commit comments

Comments
 (0)