Skip to content

Commit dbcf4c6

Browse files
authored
Create 1295-find-numbers-with-even-number-of-digits.js
1 parent 3324cfe commit dbcf4c6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @param {number[]} nums
3+
* @return {number}
4+
*/
5+
const findNumbers = function(nums) {
6+
let res = 0
7+
for(const e of nums) {
8+
const str = '' + e
9+
if(str.length % 2 === 0) res++
10+
}
11+
return res
12+
};

0 commit comments

Comments
 (0)