30:00
Given an integer n, return how many numbers x with 0 <= x < 10^n have no repeated digit.
0≤n≤80 \leq n \leq 80≤n≤8
Run code to see results.
Count the numbers below 10^2 = 100 whose digits are all different. Group them by how many digits they have.
n = 2
no slots yet
unique numbers by digit count
nothing counted yet
choices = 0
total = 0
Given n, count the integers x with 0 <= x < 10^n whose digits are all different. With n = 2 the answer is 91, because 11, 22, ..., 99 are the only repeats below 100.