Problem · Math
Unique Digits in Range
Learn this problemProblem 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^
More Agoda problems
- Minimum Absolute Difference PairsONSITE INTERVIEW · Seen Jun 2026
- Feasibility of Printing Within Given DaysONSITE INTERVIEW · Seen May 2026
- Minimum Daily Printing LimitONSITE INTERVIEW · Seen May 2026
- 3SumONSITE INTERVIEW · Seen May 2026
- Count One Groups by SizeOA · Seen Jul 2025
- Minimum Price With Discount CouponsOA · Seen Jul 2025
- Lexicographically Smallest Task QueueOA · Seen Jul 2025
- Team FormationSeen Apr 2025