Comments
On Vrutik_2809TLE in Java, 3 years ago
0

Okay, Thank you for the help.

I will look into it

On Vrutik_2809Fast printing in Java, 4 years ago
0

Thanks for the help :)

On Vrutik_2809Fast printing in Java, 4 years ago
0

Thanks for the help. So, in general, we should prefer default printing, and if we face this type of problem, we can try this approach. Is there any way to figure out priorly which method we should prefer? Because this is the first time I have encountered this type of problem

On Vrutik_2809Exit code 11, 4 years ago
0

This is the source of an error:

java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Map.get(Object)" is null
	at Solution.solve(Solution.java:34)
	at Solution.main(Solution.java:12)

I resolved this error. Check out this new solution