Even Digit Count
In numeric data, the number of digits can matter more than the value itself, such as when checking codes or IDs. Given a list nums, count how many numbers contain an even number of digits. Return that count.
Примеры
Ввод
[12, 345, 2, 6, 7896]Вывод
2Ввод
[555, 901, 482, 1771]Вывод
1Ввод
[1, 2, 3]Вывод
0Нужно реализовать
def find_numbers(nums: list[int]) -> int:
Теги
arraymath
Conectează-te pentru a vedea istoricul soluțiilor trimise
Conectează-teConectează-te pentru a folosi Mentorul AI
Conectează-teVisible tests
1
Input
[12,345,2,6,7896]Expected
22
Input
[555,901,482,1771]Expected
13
Input
[1,2,3]Expected
04
Input
[10,100,1000]Expected
25
Input
[1234]Expected
16
Input
[2,6,12,345,7896]Expected
2Focus radio
Paused · SomaFM · Fluid