Search
⌘K

Leetcode 1742. Maximum Number of Balls in a Box

Count how many numbers in the range [lowLimit, highLimit] map to each box indexed by the sum of their digits, and return the largest frequency. With lowLimit ≤ highLimit ≤ 10^5, this is essentially computing digit-sum frequencies across the interval and taking the maximum.


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.