1295. Find Numbers with Even Number of Digits ¶ Time: Space: C++JavaPython 1 2 3 4 5 6 7 8 9 10 11 12class Solution { public: int findNumbers(vector<int>& nums) { int ans = 0; for (int num : nums) if (9 < num && num < 100 || 999 < num && num < 10000 || num == 100000) ++ans; return ans; } }; 1 2 3 4 5 6 7 8 9 10 11class Solution { public int findNumbers(int[] nums) { int ans = 0; for (int num : nums) if (9 < num && num < 100 || 999 < num && num < 10000 || num == 100000) ++ans; return ans; } } 1 2 3 4 5 6 7 8 9class Solution: def findNumbers(self, nums: list[int]) -> int: ans = 0 for num in nums: if 9 < num < 100 or 999 < num < 10000 or num == 100000: ans += 1 return ans