|
|
|
|
|
by shoki
4399 days ago
|
|
Why not try to implement the iterative O(ln(n)) Fibonacci from SICP (Ex 1.19), rather than the old O(n) one? Or the Matrix exponentiation solution (he'd probably want to implement iterative matrix exponentiation too... doesn't look like he knows clearly how to do this)?
https://en.wikipedia.org/wiki/Fibonacci_number#Matrix_form |
|