Search
⌘K

Leetcode 357. Count Numbers with Unique Digits

Count how many integers x in [0, 10^n) have all distinct digits. This is a combinatorics problem: compute counts for each digit-length by using permutations of available digits (n ≤ 8 so at most 10 possible digits).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.