How many strings of four decimal digits do not contain the same digit twice

183 Views Asked by At

The answer should be

1: Four different digits : $$10*9*8*7 = 5040 $$

2: Four different digits + contains the same digit three times + all digits are of the same : $$ 10*9*8*7+10*{4 \choose 3} *9 + 10 = 5410 $$

Which one is correct? Depend on different interpretation?