• + 0 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!