You are viewing a single comment's thread. Return to all comments →
Python code, All Test Case Passed
def arrayManipulation(n, queries): arr = [0]*(n+1) for (start, end, value) in queries: arr[start-1] += value arr[end] -= value itsum = 0 mnum = 0 for i in range(n): itsum += arr[i] if mnum < itsum: mnum = itsum return mnum
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 →
Python code, All Test Case Passed