You are viewing a single comment's thread. Return to all comments →
def arrayManipulation(n, queries):
a = [0]*n for x in queries: for i in range(x[0]-1,x[1]): a[i]+=x[2] return max(a)
I used same approach in python but it says time limit exceeded
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
def arrayManipulation(n, queries):
I used same approach in python but it says time limit exceeded