Can anyone help me with this problem ?
I have followed the idea of this problem to solve the problem.
But the complexity becomes Q * NlogN , which gives TLE.
Any optimized idea ?
12939 — Keep Fit! Solution Idea ??
Can anyone help me with this problem ?
I have followed the idea of this problem to solve the problem.
But the complexity becomes Q * NlogN , which gives TLE.
Any optimized idea ?