about | help | code help+videos | done | prefs |
Given an array of ints, return the number of positive values in the given array array. Use enhanced/foreach loop for getting the elements of the array. countPositive([]) → 0 countPositive([1, -2, 3]) → 2 countPositive([1, -1, -1, -2, 0]) → 2 ...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: 170
Copyright Nick Parlante 2017 - privacy