You are viewing a single comment's thread. Return to all comments →
def arrayManipulation(n, queries): arr = [0 for _ in range(n)] for a,b,k in queries: arr[a-1] +=k if b!=n: arr[b] -=k for i in range(1,n): arr[i]+=arr[i-1] return max(arr)
can anyone please help me find my error ??
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 →
can anyone please help me find my error ??