Running Sum
August 3, 2022 ยท View on GitHub
Objectives
- Given a list of integers, return the running sum of each element this way:
input -> [1, 5, 1, 3]
output -> [1, 6, 7, 10]
- What is the time complexity?
- What is the space complexity?
August 3, 2022 ยท View on GitHub
input -> [1, 5, 1, 3]
output -> [1, 6, 7, 10]