1480. Running Sum of 1d Array
https://leetcode.com/problems/running-sum-of-1d-array
Description
Given an array nums
. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i])
.
Return the running sum of nums
.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= nums.length <= 1000
-10^6 <= nums[i] <= 10^6
ac
Last updated