MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / fast_fibonacci.py

File fast_fibonacci.py

dynamic_programming/fast_fibonacci.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/bin/env python3
2
3"""
4This program calculates the nth Fibonacci number in O(log(n)).

Callers

nothing calls this directly

Calls 1

fibonacciFunction · 0.70

Tested by

no test coverage detected