Given an array, return true if there are more odd numbers than even numbers, otherwise return false.
Example:
Input: numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
Output: true
Explanation:
There are 5 odd numbers in the array: 1, 3, 5, 7, 9
There are 4 even numbers in the array: 2, 4, 6, 8
5 is greater than 4, so our functions should return true
Free plan: 30 tutor messages. Premium is unlimited.
Saved
Ctrl + Enter to check