Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
How many numbers with no duplicate digits? How many numbers with K digits and no duplicates?
How many numbers with same length as N? How many numbers with same prefix as N?