1295. Find Numbers with Even Number of Digits

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 1295

class Solution:
    def findNumbers(self, nums: List[int]) -> int:
        return sum(len(str(v)) % 2 == 0 for v in nums)