Skip to content

Commit 7dd019f

Browse files
cclaussstokhos
authored andcommitted
Use correct function names in nth_fibonacci_using_matrix_exponentiation.py (TheAlgorithms#1045)
@AnupKumarPanwar @ParthS007 @poyea Could I please get a quick review on this one because I made a mistake here that breaks the build for new pull requests.
1 parent 3222181 commit 7dd019f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matrix/nth_fibonacci_using_matrix_exponentiation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def main():
7474
fmt = "{} fibonacci number using matrix exponentiation is {} and using bruteforce is {}\n"
7575
for ordinal in "0th 1st 2nd 3rd 10th 100th 1000th".split():
7676
n = int("".join(c for c in ordinal if c in "0123456789")) # 1000th --> 1000
77-
print(fmt.format(ordinal, nth_fibonacci(n), nth_fibonacci_test(n)))
77+
print(fmt.format(ordinal, nth_fibonacci_matrix(n), nth_fibonacci_bruteforce(n)))
7878
# from timeit import timeit
7979
# print(timeit("nth_fibonacci_matrix(1000000)",
8080
# "from main import nth_fibonacci_matrix", number=5))

0 commit comments

Comments
 (0)