You are given an integer length and an array of update operations updates, where each operation is represented as updates[i] = [startIdx, endIdx, inc].
Assume you have an array of size length where every element is initially set to
For each operation updates[i], you need to increment all elements in the range from index startIdxendIdxinc
Return the modified array after applying all the updates.
Constraints:
length
updates.length
startIdxendIdxlength
inc
You are given an integer length and an array of update operations updates, where each operation is represented as updates[i] = [startIdx, endIdx, inc].
Assume you have an array of size length where every element is initially set to
For each operation updates[i], you need to increment all elements in the range from index startIdxendIdxinc
Return the modified array after applying all the updates.
Constraints:
length
updates.length
startIdxendIdxlength
inc