leetle

13. Running Sum

95%

Write a function solve that returns the running sum of a list. The running sum is the sum of all elements up to each index.

Example: Input: [1,2,3,4] Output: [1,3,6,10]

Make sure you return your solution, don't print!

def solve(nums):
    pass