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.
I had insane reason for failing test cases. Output was saying "terminated due to timeout". That is legit error. But the reason was because i declared some variables with var keyword (C#).
After changing that from "var" to "long" I passed the tests!
This has nothing to do with real life since using var keywords does not have performance hits for the 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 →
I had insane reason for failing test cases. Output was saying "terminated due to timeout". That is legit error. But the reason was because i declared some variables with var keyword (C#).
After changing that from "var" to "long" I passed the tests! This has nothing to do with real life since using var keywords does not have performance hits for the code.