3 ms·
Nitpick: I understand your point in general, but it's not actually true that you need to calculate the n-1 and n-2 values first for Fibonacci. You can use Bine
by chillee 7y ago
Nitpick: I understand your point in general, but it's not actually true that you need to calculate the n-1 and n-2 values first for Fibonacci.
You can use Binet's formula or matrix exponentiation to calculate it without such a dependency.