Tap here to switch tabs
Problem
Submissions

Problem: Count Numbers With Unique Digits II

med
30 min
Try to solve the Count Numbers With Unique Digits II problem.

Statement

Given two positive integers a and b, return the total count of numbers in the inclusive range [[a, b]] where every digit is unique and no digit appears more than once.

Constraints:

  • 1≤1 \leq a ≤\leq b ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Numbers With Unique Digits II

med
30 min
Try to solve the Count Numbers With Unique Digits II problem.

Statement

Given two positive integers a and b, return the total count of numbers in the inclusive range [[a, b]] where every digit is unique and no digit appears more than once.

Constraints:

  • 1≤1 \leq a ≤\leq b ≤1000\leq 1000