Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
For a substring consisting of the same digit, how can we count the number of texts it could have originally represented?
How can dynamic programming help us calculate the required answer?