If in a 10-digit number, the first four digits are either exactly the same as the next four digits or the last four digits. How many such 10 digit numbers are there?
First I consider the case with first four and next four are same. For the first four places, we have $9\times 10\times 10\times 10$ ways of choosing digits as zero cant come in first digit.
The digits for next four places are already choosen as they are the same. The remaining two places can be filled in $10\times 10$ ways.
Therefore total is $9\times 10^5$ ways.
Since the second case first four and last four digits are same, the answer will again be $9\times 10^5$ ways.
Therefore, total numbers are $2\times 9\times 10^5$. However, correct ans is $9\times 10^5-90$ .
Why am I wrong?