Search
⌘K

Leetcode 2180. Count Integers With Even Digit Sum

Count how many positive integers ≤ num have an even sum of digits. With num ≤ 1000 this is easily solved by computing each number's digit-sum parity (or noticing repeating parity patterns) and counting those that are even.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.