We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2375bfb commit a79fc2bCopy full SHA for a79fc2b
maths/matrix_exponentiation.py
@@ -64,7 +64,7 @@ def simple_fibonacci(n, f1, f2):
64
fn_1, fn_2 = fn_1 + fn_2, fn_1
65
n -= 1
66
67
- return fn
+ return fn_1
68
69
70
def matrix_exponentiation_time():
0 commit comments