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 had this problem on several challenges now: for some testcases my scanner doesn't seem to want to read the last line of the given input. I recognized this problem when trying out testcase 5, which was causing some unknown runtime error, and realized the last line of the input wasn't recognized until I pressed the "enter" key, after which it computed the result normally. Any idea what might cause this problem and how to solve it?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java BitSet
You are viewing a single comment's thread. Return to all comments →
I've had this problem on several challenges now: for some testcases my scanner doesn't seem to want to read the last line of the given input. I recognized this problem when trying out testcase 5, which was causing some unknown runtime error, and realized the last line of the input wasn't recognized until I pressed the "enter" key, after which it computed the result normally. Any idea what might cause this problem and how to solve it?