id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > wrapArray
prev  |  next  |  chance

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)

public int[] wrapArray(int[] nums) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 240

Copyright Nick Parlante 2017 - privacy