Count Good Integers in a Range
Count integers up to a bound with a digit DP that remembers the previous digit, then subtract the counts for l - 1 and r.
Count integers up to a bound with a digit DP that remembers the previous digit, then subtract the counts for l - 1 and r.