As reported: Visa software engineer new-grad on-campus online assessment in India on Codility (2025; proctored, 70 minutes, 4 questions), question 1: given an array, count how many numbers have an odd number of zero digits.
Given an array of non-negative integers nums, return how many of them have an odd number of 0 digits in their decimal representation.
Example
nums = [10,100,1000,7,0,1001] -> 3 (10 has one zero, 1000 three, 0 one; 100 and 1001 have two, 7 none)
nums = [1,2,3] -> 0
Constraints: 1 ≤ nums.length ≤ 10^5; 0 ≤ nums[i] ≤ 10^9.
Clarifications
- Numbers are written without leading zeros;
0itself is the single digit0and so has one zero digit.
Code runner format: one JSON value per line: nums. Implement countOddZeroNumbers(nums); the harness prints the count.