Running Sum

August 3, 2022 ยท View on GitHub

Objectives

  1. Given a list of integers, return the running sum of each element this way:
input -> [1, 5, 1, 3]
output -> [1, 6, 7, 10]
  1. What is the time complexity?
  2. What is the space complexity?

Solution

Click here to view the solution

Contents

  1. 1Objectives
  2. 2Solution