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,000where- nis the length of- nums
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