Skip to content

Commit 3d3343a

Browse files
committed
Apr 30
1 parent c592d95 commit 3d3343a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class Solution:
2+
def findNumbers(self, nums: list[int]) -> int:
3+
return sum([len(str(num)) % 2 == 0 for num in nums])
4+
5+
6+
def main():
7+
nums = [12, 345, 2, 6, 7896]
8+
assert Solution().findNumbers(nums) == 2
9+
10+
nums = [555, 901, 482, 1771]
11+
assert Solution().findNumbers(nums) == 1
12+
13+
14+
if __name__ == '__main__':
15+
main()

2025-04-April-LeetCoding-Challenge/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
| April 27 | [3392. Count Subarrays of Length Three With a Condition](https://leetcode.com/problems/count-subarrays-of-length-three-with-a-condition/) | Easy | Solved |
3434
| April 28 | [2302. Count Subarrays With Score Less Than K](https://leetcode.com/problems/count-subarrays-with-score-less-than-k/) | Hard | Solved |
3535
| April 29 | [2962. Count Subarrays Where Max Element Appears at Least K Times](https://leetcode.com/problems/count-subarrays-where-max-element-appears-at-least-k-times/) | Medium | Solved |
36-
| April 30 | []() | | |
36+
| April 30 | [1295. Find Numbers with Even Number of Digits](https://leetcode.com/problems/find-numbers-with-even-number-of-digits/) | Easy | Solved |
3737

3838

3939
## Summary
4040
| Level | Problems | Solved | Unsolved |
4141
| --- | --- | --- | --- |
42-
| Easy | 8 | 8 | 0 |
42+
| Easy | 9 | 9 | 0 |
4343
| Medium | 14 | 10 | 4 |
4444
| Hard | 6 | 1 | 5 |

0 commit comments

Comments
 (0)