TLE in Java

Правка en1, от Vrutik_2809, 2022-12-31 17:08:13

I was solving this problem. Although my solution is correct, I got TLE due to Java. My solution can be found here. But when i submitted the same solution in C++, it got accepted.(check it out here)

Can someone please help me out how to resolve this issue?

Теги java, tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Vrutik_2809 2022-12-31 17:08:13 438 Initial revision (published)