<filename>LeetCode/1480.py
#
# LeetCode
#
# Problem - 1480
# URL - https://leetcode.com/problems/running-sum-of-1d-array/
#

class Solution:
  def runningSum(self, nums: List[int]) -> List[int]:
    for i in range(1, len(nums)):
      nums[i] = nums[i] + nums[i-1]

    return nums

<filename>LeetCode/1480.py
#
# LeetCode
#
# Problem - 1480
# URL - https://leetcode.com/problems/running-sum-of-1d-array/
#

class Solution:
  def runningSum(self, nums: List[int]) -> List[int]:
    for i in range(1, len(nums)):
      nums[i] = nums[i] + nums[i-1]

    return nums

# # LeetCode # # Problem - 1480 # URL - https://leetcode.com/problems/running-sum-of-1d-array/ #