about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 220
Copyright Nick Parlante 2017 - privacy