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 function should return True
Free plan: 30 tutor messages. PRO is unlimited.
Saved
Ctrl + Enter to check
