Skip to content

Commit 385a3ed

Browse files
authored
Updated the matrix exponentiation approach of finding nth fibonacci.
- Removed some extra spaces - Added the complexity of bruteforce algorithm - Removed unused function called zerro() - Added some docktest based on request
1 parent b159705 commit 385a3ed

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
@@ -38,7 +38,7 @@ def identity(n):
3838
def nth_fibonacci(n):
3939
"""
4040
>>> nth_fibonacci(100)
41-
354224848179261915075L
41+
354224848179261915075
4242
>>> nth_fibonacci(-100)
4343
-100
4444
"""

0 commit comments

Comments
 (0)