Tap here to switch tabs
Problem
Submissions

Problem: Count Numbers With Unique Digits II

Count Numbers With Unique Digits II asks you to count every number in an inclusive range whose decimal representation contains no repeated digit.

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

Count Numbers With Unique Digits II asks you to count every number in an inclusive range whose decimal representation contains no repeated digit.

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