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've downloaded the a couple of the "failed" datasets and run it locally - they run perfectly fine, producing correct results, with 50000 and 100000 inputs.
I can only surmise the issue is with the input string size. So this seems to be a test not of the algorithm but how you can efficiently process an extremely large console input.
I've not had this issue on any other challenges. I've tried reading the input in a variety of ways (buffered, using StringBuilder, stdin.ReadLine(), streaming using stdin.Read) and all result in "runtime error".
Any thoughts or advice appreciated.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
John and Fences
You are viewing a single comment's thread. Return to all comments →
I keep getting a "runtime error" using F#.
I've downloaded the a couple of the "failed" datasets and run it locally - they run perfectly fine, producing correct results, with 50000 and 100000 inputs.
I can only surmise the issue is with the input string size. So this seems to be a test not of the algorithm but how you can efficiently process an extremely large console input.
I've not had this issue on any other challenges. I've tried reading the input in a variety of ways (buffered, using StringBuilder, stdin.ReadLine(), streaming using stdin.Read) and all result in "runtime error".
Any thoughts or advice appreciated.