Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita89097f

Browse files
refactor 1295
1 parent0d8050e commita89097f

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

‎src/main/java/com/fishercoder/solutions/_1295.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,6 @@
22

33
importjava.util.Arrays;
44

5-
/**
6-
* 1295. Find Numbers with Even Number of Digits
7-
*
8-
* Given an array nums of integers, return how many of them contain an even number of digits.
9-
*
10-
* Example 1:
11-
* Input: nums = [12,345,2,6,7896]
12-
* Output: 2
13-
* Explanation:
14-
* 12 contains 2 digits (even number of digits).
15-
* 345 contains 3 digits (odd number of digits).
16-
* 2 contains 1 digit (odd number of digits).
17-
* 6 contains 1 digit (odd number of digits).
18-
* 7896 contains 4 digits (even number of digits).
19-
* Therefore only 12 and 7896 contain an even number of digits.
20-
*
21-
* Example 2:
22-
* Input: nums = [555,901,482,1771]
23-
* Output: 1
24-
* Explanation:
25-
* Only 1771 contains an even number of digits.
26-
*
27-
* Constraints:
28-
* 1 <= nums.length <= 500
29-
* 1 <= nums[i] <= 10^5
30-
* */
315
publicclass_1295 {
326
publicstaticclassSolution1 {
337
publicintfindNumbers(int[]nums) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp