Problem · Math
Ashley Love Numbers
Learn this problemProblem statement
Count integers in the inclusive range [left, right] whose decimal representation contains no repeated digit.
Function
countLoveNumbers(left: int, right: int) → intExamples
Example 1
left = 1right = 20return = 19Every value except 11 has no repeated decimal digit.
Constraints
0 <= left <= right <= 1000000