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.
Hi @eiphorie - in random tests, the value of
n
goes up to10**19
or so meaning that actually creating the string is impossible, let alone counting inside it.You have to find a smarter way to get the answer - for this, you can use your solution for smaller values of
n
to maybe try to find some patterns or help you debug.This is actually more of a mathematics/logic type kata, so if you don't get the answer straight away then practicing on other katas will definitely improve your ability to "see" the correct approach and techniques. Hope that helps a bit