# [1480. Running Sum of 1d Array](https://leetcode.com/problems/running-sum-of-1d-array/)   /** * Note: The returned array must be malloced, assume caller calls free(). */ int* runningSum(int* nums, int numsSize, int* returnSize){ returnSize[0]=nums[0]; for(int i=1;i<numsSize;i++) { nums[i]+=nums[i-1]; } *returnSize = numsSize; return nums; }
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up