当前位置: 代码迷 >> 综合 >> Leetcode【1295】Find Numbers with Even Number of Digits(Java版)
  详细解决方案

Leetcode【1295】Find Numbers with Even Number of Digits(Java版)

热度:84   发布时间:2024-01-24 22:47:14.0
class Solution {public int findNumbers(int[] nums) {int count = 0;for(int i:nums){if(String.valueOf(i).length() % 2 == 0)count++;}return count;}
}

 

  相关解决方案