about | help | code help+videos | done | prefs |
Write a method that finds the sum of all the integers in array 'nums' except any occurrence of 'exclude' is not counted in the sum. Look at the test data for examples. Remember, you may only have ONE return statement in each method. test2021_09_02_SLHL_sumExcluding([18, 12, 11, -5, 18, 42, 25, 100], 7) → 221 test2021_09_02_SLHL_sumExcluding([18, 12, 11, -5, 18, 42, 25, 100], 18) → 185 test2021_09_02_SLHL_sumExcluding([3, 7, 13, 17, 23, 27, 50000], 50000) → 90 ...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: 270
Copyright Nick Parlante 2017 - privacy