Prefix Sums
Easy · rating 950 · Prefix Sum, Arrays
The first line has n. The second line has n integers. Print the running (prefix) sums, space-separated.
Constraints: 1 ≤ n ≤ 105
Related problems
- Product of Array Except Self — Hard
- Subarrays Summing to K — Hard
- Interleave Arrays — Easy
- Low Stock Alert — Easy
- Max Consecutive Ones — Easy
- Move Zeroes — Easy