mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-25 03:11:41 +08:00
12 lines
160 B
Go
12 lines
160 B
Go
package leetcode
|
|
|
|
import "strconv"
|
|
|
|
func findNumbers(nums []int) int {
|
|
res := 0
|
|
for _, n := range nums {
|
|
res += 1 - len(strconv.Itoa(n))%2
|
|
}
|
|
return res
|
|
}
|