Answers for "running sum of array"

0

running sum of array

Input: nums = [1,1,1,1,1]
Output: [1,2,3,4,5]
Explanation: Running sum is obtained as follows: [1, 1+1, 1+1+1, 1+1+1+1, 1+1+1+1+1].
Posted by: Guest on April-28-2021

Browse Popular Code Answers by Language