about | help | code help+videos | done | prefs |
Write a method that alternately adds and subtracts elements of an integer array to get a total. Return that total. poolAltTotal([3, 1, 7, 4, 9]) → 14 poolAltTotal([5, 1]) → 4 poolAltTotal([7]) → 7 ...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: 290
Copyright Nick Parlante 2017 - privacy