There are [tex]\binom{10}2[/tex] ways of picking any two digits.
The first digit can be chosen between 1 and 4 times; the remaining positions in the sequence are occupied by the other digit. The number of ways this can happen is
[tex]\dbinom51\dbinom44+\dbinom52\dbinom33+\dbinom53\dbinom22+\dbinom54\dbinom11=\displaystyle\sum_{n=1}^4\binom5n[/tex]
Then the total number of sequences that match the criterion is
[tex]\displaystyle\binom{10}2\sum_{n=1}^5\binom5n=\boxed{1350}[/tex]
(where [tex]\binom nk=\frac{n!}{k!(n-k)!}[/tex])