Tap here to switch tabs
Problem
Submissions

Problem: Count Special Integers

med
30 min
Try to solve the Count Special Integers problem.

Statement

Given a positive integer n, return the count of special integers in the inclusive range from 11 to n.

A positive integer is considered special if all of its digits are unique.

Constraints:

  • 1≤1 \leq n ≤2imes109\leq 2 imes 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Special Integers

med
30 min
Try to solve the Count Special Integers problem.

Statement

Given a positive integer n, return the count of special integers in the inclusive range from 11 to n.

A positive integer is considered special if all of its digits are unique.

Constraints:

  • 1≤1 \leq n ≤2imes109\leq 2 imes 10^9