You are viewing a single comment's thread. Return to all comments →
Can also confirm that changing my (Java 8) boilerplate code to this made all tests that were failing due to timeout (Test cases 9 - 15) pass.
Thank you so much, and shame on HackerRank for providing bad boilerplate code!
Boilerplate is great :), makes you make sure code works.
Hints: Input does not fit memory, there are requests for too hight frequencies.