I am getting TLE with java on this problem http://www.spoj.com/problems/GSS3/ . I checked all testcases and it seems to be running fine. Any help would be appreciated.
Code :- https://ideone.com/lFTHXl
SPOJ TLE on a simple segment tree problem .
I am getting TLE with java on this problem http://www.spoj.com/problems/GSS3/ . I checked all testcases and it seems to be running fine. Any help would be appreciated.
Code :- https://ideone.com/lFTHXl