about | help | code help+videos | done | prefs |
test2022_01_20_APSLHL_sumUp
Write a method that returns the sum of all the non-negative numbers in the given array of integers. Look at the test data for examples. test2022_01_20_APSLHL_sumUp([18, -2, 2, -5]) → 20 test2022_01_20_APSLHL_sumUp([]) → 0 test2022_01_20_APSLHL_sumUp([-124, -346, -346, -235, -856, -41, -345, -22]) → 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: 240
Copyright Nick Parlante 2017 - privacy