https://www.codechef.com/viewsolution/26013090
This is my code for the below problem. I think that the algorithm runs in O(t*(n+q)).
Am I missing something?
Thanks in advance.
https://www.codechef.com/viewsolution/26013090
This is my code for the below problem. I think that the algorithm runs in O(t*(n+q)).
Am I missing something?
Thanks in advance.