Given an array and queries (index, value), add value at the index, value-1 to each neighbour, value-2 to the next ones, and so on until the increment reaches zero. Output the final array.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Given an array of integers, find the next greater integer for each element in the array.Related courses

Course
