# Running Sum of 1D Array (Leetcode 1480)

Problem Link: <https://leetcode.com/problems/running-sum-of-1d-array/>

```python
class Solution:
    def runningSum(self, nums: List[int]) -> List[int]:
        
        s=0
        ans=[]
        for i in nums:
            s=s+i
            ans.append(s)
        return ans
```
