Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d3290fa

Browse files
committed
added task #1295 solution
1 parent c146e39 commit d3290fa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/task_1295/Solution.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package task_1295;
2+
3+
public class Solution {
4+
public int findNumbers(int[] nums) {
5+
int counter = 0;
6+
for (int i = 0; i < nums.length; i++) {
7+
if (((int) (Math.log10(nums[i])) + 1) % 2 == 0) {
8+
counter++;
9+
}
10+
}
11+
return counter;
12+
}
13+
14+
}

0 commit comments

Comments
 (0)