You are viewing a single comment's thread. Return to all comments →
large amount of lines will crash your solution. And map fucntion need to make Boxing methinks and this takes much time
WTF!!! It's true! I had a time out problem with test case 7 up to 12 I think and my code is good enough and didn't know what to do...until I read your comment, I removed all the empty spaces and the debugging prints (System.out.println for Java 8) and it worked :O
This is true, I spent too much time trying figure out why my solution was timing out. Deleted some whitespace and it ran fine.