less than 1 minute read

Given a list of positive integers nums, return the number of integers that have odd number of digits.

Constraints

  • n ≤ 100,000 where n is 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.

Solution

Leave a comment