30:00
Given an array nums of integers, return how many of them contain an even number of digits.
1≤nums.length≤5001 \leq \text{nums.length} \leq 5001≤nums.length≤500
1≤nums[i]≤1051 \leq \text{nums}[i] \leq 10^51≤nums[i]≤105
Run code to see results.
nums (5)
bench: num //= 10
waiting for the first number
even digit count
0
odd digit count
count starts at 0. Each of the 5 numbers will have its digits chopped off one at a time.
Given an array nums of positive integers, return how many of them have an even number of decimal digits. For example, 12 and 7896 qualify, while 345 and 6 do not.