| about | help | code help+videos | done | prefs |
sumWithoutSmallest() -- You are given an ArrayList of integers and want to determine the sum of all of the numbers in that ArrayList, without counting the smallest number. Your method should return that sum. Note: you may assume that the list will have at least one number in it. sumWithoutSmallest([12]) → 0 sumWithoutSmallest([1, 2, 3]) → 5 sumWithoutSmallest([3, 4, 2, 1, 5]) → 14 ...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: 80
Copyright Nick Parlante 2017 - privacy