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

 

feb27_2018_APSLHL_total


Write a method that returns the sum of all the integers in the array, except do not include a number in the sum if it matches the 'ignore' number. Look at the test data for examples.


feb27_2018_APSLHL_total([], 5) → 0
feb27_2018_APSLHL_total([18], 18) → 0
feb27_2018_APSLHL_total([18], 24) → 18

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

public int feb27_2018_APSLHL_total(int[] nums, int ignore) { }

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: 280

Copyright Nick Parlante 2017 - privacy