You are viewing a single comment's thread. Return to all comments →
can someone tell me why 5 tests failed(but other 11 tests were passed) after i submitted the code.
def arrayManipulation(n, queries): arr = [0] * (n + 1) for left, right, value in queries: while left<=right: arr[left-1] += value left += 1 max_value = max(arr) return max_value
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 someone tell me why 5 tests failed(but other 11 tests were passed) after i submitted the code.