SPOJ DQUERY TLE

Revision en2, by rahulkhairwar, 2016-05-17 21:33:19

I was trying to learn Mo's Algorithm from here and this was one of the suggested problems. But, I'm getting TLE verdict with Java, while my code is very similar to the one that the tutorial's author has written, in C++.

Can someone please tell me what am I doing wrong(slow)? Thanks.

UPDATE : Sorry, forgot to post a link for my code

Tags spoj dquery, java 8, time limit error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English rahulkhairwar 2016-05-17 21:33:19 96
en1 English rahulkhairwar 2016-05-17 21:29:30 411 Initial revision (published)