Tap here to switch tabs
Problem
Submissions

Problem: Count Numbers with Unique Digits

Count Numbers with Unique Digits asks you to return how many nonnegative integers below ten raised to the power of n have no repeated digits.

Statement

Given an integer n, return the count of all numbers x with unique digits such that 0≤x<10n0 \le x < 10^n.

Constraints:

  • 0≤0 \le n ≤8\le 8

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Numbers with Unique Digits

Count Numbers with Unique Digits asks you to return how many nonnegative integers below ten raised to the power of n have no repeated digits.

Statement

Given an integer n, return the count of all numbers x with unique digits such that 0≤x<10n0 \le x < 10^n.

Constraints:

  • 0≤0 \le n ≤8\le 8