1295. Find Numbers with Even Number of Digits

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 1295

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