Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript

Input: nums = [1,2,3,4]
Output: [1,3,6,10]
Explanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4].
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
5+1 =