Vrutik_2809's blog

By Vrutik_2809, history, 2 years ago, In English

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.

Can someone please help me out with how i can improve printing time in Java?

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

you can use StringBuilder like this