leetcode1295

Posted AsenYang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了leetcode1295相关的知识,希望对你有一定的参考价值。

1 class Solution:
2     def findNumbers(self, nums: List[int]) -> int:
3         n = len(nums)
4         count = 0
5         for i in range(n):
6             s = str(nums[i])
7             if len(s) % 2 == 0:
8                 count += 1
9         return count

 

以上是关于leetcode1295的主要内容,如果未能解决你的问题,请参考以下文章