about | help | code help+videos | done | prefs |
Write a method that returns the sum of the POSITIVE integers in an array of any kind of integer. Look at the test data. smaugCountsPositives([40, -20, 10, -5, -2, 0, 12]) → 62 smaugCountsPositives([-42, -4, -2, -182, -45]) → 0 smaugCountsPositives([]) → 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: 220
Copyright Nick Parlante 2017 - privacy