We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96bbadd + 4cccd85 commit 10da286Copy full SHA for 10da286
1295. Find Numbers with Even Number of Digits
@@ -0,0 +1,10 @@
1
+class Solution {
2
+public:
3
+ int findNumbers(vector<int>& nums) {
4
+ int ans = 0;
5
+ for(auto &x : nums){
6
+ ans += to_string(x).size() & 1 ? 0 : 1;
7
+ }
8
+ return ans;
9
10
+};
0 commit comments