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.
Can you tell us which testcase is giving seg fault?
You can just download that testcase and check yourself too.
It must be an edge case or might be using enormous memory.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Join us
Create a HackerRank account
Be part of a 26 million-strong community of developers
Please signup or login in order to view this challenge
Fibonacci Modified
You are viewing a single comment's thread. Return to all comments →
i wrote it in c..its giving correct output in devcpp,but here it shows wrong output..
programing with the combination of codes and notes can always help. what is the meaning of the sentence like "a[i]-'0'"?
converting char a[i] to its decimal equivalent
same issue getting correct output in my IDE but segmentation fault while submittin... any suggestion?
Can you tell us which testcase is giving seg fault? You can just download that testcase and check yourself too. It must be an edge case or might be using enormous memory.