Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
klodolph
on Feb 24, 2010
|
parent
|
context
|
favorite
| on:
Why you should never, ever, ever use fibonacci for...
The closed form solution isn't O(1). It's Ω(2^N) since the number of digits in the output is Θ(2^N).
InclinedPlane
on Feb 24, 2010
[–]
On the most prevalent electronic computers of our time the closed form solution is effectively constant-time if the output is bounded to be within the limits of a 32 or 64 bit integer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: