dev-serum
Search...
Ctrl
K
Data Structures & Algorithms
Coding Challenges
Codewars
8Kyu
Count Odd Numbers below n
Previous
Get the mean of an array
Next
Convert a String to a Number!
Last updated
4 years ago
Was this helpful?
Approach
Solution
JavaScript
Copy
const oddCount = (n) => Math.floor(n / 2);
Count Odd Numbers below n
Codewars