Odd Number of Digits
Given a list of positive integers nums
, return the number of integers that have odd number of digits.
Constraints
n ≤ 100,000
wheren
is the length ofnums
https://binarysearch.com/problems/Odd-Number-of-Digits
Examples
Example 1
Input
- nums =
[1, 800, 2, 10, 3]
Output
- answer =
4
Explanation
[1, 800, 2, 3]
have odd number of digits.
Leave a comment