I got 30 points in the problem Triplets ( SUMQ ) from the contest JUNE17.
How can I optimize my code more than this?
One more thing, I noticed that I got TLE in only one test case in c++ solution and got TLE in two test cases in java solution.
Why is this so as I used the same approach in both of my solutions?
Can anyone tell me how can I optimize my java solution?