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.
this problem can't be solved in c# unless you modify the return type, int can't handle the upper bound, so changed to string, used BigInteger internally and then it worked, this should be fixed in order to actually solve the problem, as it state "The function is expected to return an INTEGER." that is not valid
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci Modified
You are viewing a single comment's thread. Return to all comments →
this problem can't be solved in c# unless you modify the return type, int can't handle the upper bound, so changed to string, used BigInteger internally and then it worked, this should be fixed in order to actually solve the problem, as it state "The function is expected to return an INTEGER." that is not valid