about | help | code help+videos | done | prefs |
countOdds
Return the number of odd ints in the given array. Note: the % "mod" operator computes the remainder, e.g. 5 % 2 is 1. countOdds([1]) → 1 countOdds([2]) → 0 countOdds([1, 13, 4, 1]) → 3 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy