No of numbers less than a given number with no repeating digits
问题 How can we find the number of numbers less than a given number with no repeating digits in it? For example the number of such numbers less than 100 is 90. (11, 22, 33,44, 55,66,77,88,99 have repeating digits so are excluded). Similarly for less than 1000, digits like 101, 110, 122, 202 etc have to be excluded. 回答1: Here is a way to make it quicker. Notice that there is a correlation between the number of digits in the max number and the solution (number of numbers which I will call NON ) 100