We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
No way. Computing golden ratio will take valuable cycles. All those irrational numbers will make it a mess, since floating point calculations take much heavier toll and are more susceptible to errors. And, in the given range, there are only 50 fibonaccis to compute max. Even then, you can opt for a compute and extend the dictionary as you go method.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Is Fibo
You are viewing a single comment's thread. Return to all comments →
No way. Computing golden ratio will take valuable cycles. All those irrational numbers will make it a mess, since floating point calculations take much heavier toll and are more susceptible to errors. And, in the given range, there are only 50 fibonaccis to compute max. Even then, you can opt for a compute and extend the dictionary as you go method.