Unique Digits in Range
Problem statement
Given a range [a, b], count how many numbers in that range have all unique digits.
Function
countUniqueDigits(a: int, b: int) → intExamples
Example 1
a = 5b = 11return = 6^o^
Given a range [a, b], count how many numbers in that range have all unique digits.
countUniqueDigits(a: int, b: int) → inta = 5b = 11return = 6^o^
public int countUniqueDigits(int a, int b) {
// write your code here
}