You are viewing a single comment's thread. Return to all comments →
for some test cases its showing teminated due to timeout what can i do
def arrayManipulation(n, queries): a=[] for i in range(n): a.append(0) for j in queries: for k in range(j[0],j[1]+1): a[k-1]=a[k-1]+j[2] return (max(a))
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 →
for some test cases its showing teminated due to timeout what can i do