about | help | code help+videos | done | prefs |
Write a method that accepts an array of integers and returns an array containing a "running total" of the original array. Look at the test data for examples. wrapArray([-5, 532, 325, 323, -421, -5, 21]) → [-5, 527, 852, 1175, 754, 749, 770] wrapArray([2, 5, 1, 3]) → [2, 7, 8, 11] wrapArray([3]) → [3] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 240
Copyright Nick Parlante 2017 - privacy