Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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].
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged: #running #sum #array
ADD COMMENT
Topic
Name
8+9 =