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.
both are fibonacci numbers. But your code is printing that 3 is non-fibo. Also, you are assuming that the input given is always in increasing order of fibonacci series but it is not the case. Please fix your code.
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 →
Check for this input
both are fibonacci numbers. But your code is printing that 3 is non-fibo. Also, you are assuming that the input given is always in increasing order of fibonacci series but it is not the case. Please fix your code.