Find Numbers with Even Number of Digits
Given an array nums of integers, return how many of them contain an even number of digits.
Example 1
Input
nums = [12,345,2,6,7896]Output
212 and 7896 contain an even number of digits, while 345, 2, and 6 do not.
Example 2
Input
nums = [555,901,482,1771]Output
1Only 1771 contains an even number of digits.
Constraints
- 1 <= nums.length <= 500
- 1 <= nums[i] <= 10^5