• + 0 comments

    Hi, I have an even simpler solution. But, I am still getting a run time error. Can anyone please help me with this. Here is my code in Python 3:

    def arrayManipulation(arr, query): a, b, k = query[0], query[1], query[2] arr[a - 1 : b] = [arr[i] + k for i in range(a - 1, b)] return arr