about | help | code help+videos | done | prefs |
countOdds
Write a function countOdds(data) that returns the number of odd integers in the list data. For example, countOdds([1, 2, 3]) should return 2. countOdds([1, 1, 1, 1, 1, 1, 1]) → 7 countOdds([2, 2, 2, 2, 2, 2, 2]) → 0 countOdds([1, 2, 1, 3, 4, 5, 2]) → 4 ...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