Hi codeforces,↵
I need to solve this sub task " given an array of zeros we need to apply 2kindtypes of operations on it 1- increment elements in a given range by 1 or decrement them by -1 .. 2- count the number of positive integers in the array "↵
I have a solution which work in O(M*sqrtN*logN) where M is the number of operations. but this solution is not fast enough to pass the time limit .. could some one please give me a faster solution.↵
thanks in advance ↵
I need to solve this sub task " given an array of zeros we need to apply 2
I have a solution which work in O(M*sqrtN*logN) where M is the number of operations. but this solution is not fast enough to pass the time limit .. could some one please give me a faster solution.↵
thanks in advance ↵