Running total
easyLists10 XP
Return a list where each item is the sum of nums up to and including that position.
Examples
- Input: nums = [1, 2, 3, 4]Output: [1, 3, 6, 10]
- Input: nums = []Output: []
Examples use JSON: true/false/null are True/False/None in Python.