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

 

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

Write a method that has an integer array as an input parameter. Find the sum of each adjacent pair of integers in the array and return a new array with those sums of adjacent elements.


sumAdjacentProg3Dec2011([]) → []
sumAdjacentProg3Dec2011([5]) → [0]
sumAdjacentProg3Dec2011([3, 44, -5, -21, 3]) → [47, 39, -26, -18]

...Save, Compile, Run (ctrl-enter)

public int[] sumAdjacentProg3Dec2011(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: 220

Copyright Nick Parlante 2017 - privacy