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.
Thanks I understood the problem.
The solution is not language agnostic. This is kind of hack with builtin functions. I would rather solve problem using algorithms than hacking with builtins.
How these test cases are correct?
11115121109876543210 should equal 0
1111512110987654321010 should equal 10
1111512110987654321010976542 should equal 976542
11115121109876543210109765429633211 should equal 9633211
111151211098765432101097654296332119 should equal 9
111151211098765432101097654296332119741 should equal 741
This comment is hidden because it contains spoiler information about the solution