2180. Count Integers With Even Digit Sum
Easy
Given a positive integer num
, return the number of positive integers less than or equal to num
whose digit sums are even.
The digit sum of a positive integer is the sum of all its digits.
Example 1:
Example 2:
Constraints:
1 <= num <= 1000
解題
Runtime: 0 ms, faster than 100%
Memory Usage: 1.9 MB, less than 90.91%
Last updated