<reponame>aarifsk/ProblemSolving<filename>Leetcode/Easy/1480-Running_Sum_1dArray.py<gh_stars>0
class Solution:
    def runningSum(self, nums):
        running_sum = 0
        ans = []
        for i in nums:
            running_sum += i
            ans.append(running_sum)
        return ans

class Solution:
    def runningSum(self, nums):
        running_sum = 0
        ans = []
        for i in nums:
            running_sum += i
            ans.append(running_sum)
        return ans