Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I think that with that input, it will take a long time to be solved...
I tried with the input 123416523 and it took (37.97 secs, 74,454,731,984 bytes) to get the solution, which by the way is: 68961984
I see that this problem has exponential time to be solved, related to how big the input is...
up to 100 you have: 9, 19, 29, 39, 49, 59, 69, 79, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99... so there are 19 number with at least one 9....
Same issue here... I can run the code on other platform and it works just fine, but I get the timeout error here... I think that the issue is for big numbers, because it takes more than 12 seconds to get the solution. :(