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.
This comment is hidden because it contains spoiler information about the solution
approved by someone
OK so basically I just forgot about this kata but now I'll try to fix all the problems and suggestions
I said TRY
Excellent kata!!! A little bit tricky)))
I solve it with using integer->string conversions, then without using integer->string conversions. But everytime a have Execution Timed Out (12000 ms)
Scala translation
Computing the actual number will always be too slow, the task is to only find out how long the number is.
You need a different approach entirely.
In computing, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another (called the modulus of the operation).: https://en.wikipedia.org/wiki/Modulo
What do you mean my modulo
can someone plz tell me whats a modulo
@avermakov how to fix this
Your solution is too slow.
This comment is hidden because it contains spoiler information about the solution
@seika-afk The question is "How many digits?", so just count the digits :)
You have to solve it without using integer->string conversions (no bruteforce). It wouldn't be 5kyu if it was that easy :P
And could you please not reply to random users' comments? Just raise a question at the top level, where more people can see it.
Loading more items...