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.
Hey Guys,
could anyone help me? I submitted Scala solution for this where I used mutable heap and InputStreamReader and BufferedStreamReader, but test-cases: 16, 18, 19 are still time-outed... I don't know how I could deal with IO more efficiently. I guess, it's the IO causing these timeouts.
Any help would be great.
Thank you!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fighting Armies
You are viewing a single comment's thread. Return to all comments →
Hey Guys, could anyone help me? I submitted Scala solution for this where I used mutable heap and InputStreamReader and BufferedStreamReader, but test-cases: 16, 18, 19 are still time-outed... I don't know how I could deal with IO more efficiently. I guess, it's the IO causing these timeouts.
Any help would be great.
Thank you!