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.
You won't be able to solve this using any JS native functions. To solve this problem, you can spin up your own big-num helpers(pretty messy for a problem of this scale). In the real world you might use a library like https://github.com/jtobey/javascript-bignum.
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 →
You won't be able to solve this using any JS native functions. To solve this problem, you can spin up your own big-num helpers(pretty messy for a problem of this scale). In the real world you might use a library like https://github.com/jtobey/javascript-bignum.