1067. Digit Count in Range
https://leetcode.com/problems/digit-count-in-range
Description
Given a single-digit integer d
and two integers low
and high
, return the number of times that d
occurs as a digit in all integers in the inclusive range [low, right]
.
Example 1:
Example 2:
Constraints:
0 <= d <= 9
1 <= low <= high <= 2 * 108
ac
Last updated