about | help | code help+videos | done | prefs |
Write a method that returns the sum of all of the numbers in the array 'nums', but only include numbers below the number 'max'. Look at the test data for examples. dec16_2019_APP1SLHL_sumBelow([-14, -5, 16, 22, 38, 38, 38, -2, -1], 17) → -6 dec16_2019_APP1SLHL_sumBelow([60, 30, 40, 50, 10], 37) → 40 dec16_2019_APP1SLHL_sumBelow([27, 34], 1) → 0 ...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