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.
Not a kata suggestion ! ^^
This comment is hidden because it contains spoiler information about the solution
in c++ input parameter has type long, but 10e10 numbers can't fit into long, maybe change to long long?
This kata is SOO GOOD!
I've spent a whole day figuring out how to optimize the code, since it timed-out at random tests. It made me go through the rabbit hole of finding out how the summation of digits works and how to MAX the result and minimize the number of iterations.
Honestly, this mixture of frustration and EUREKA! is what I'm looking for.
very fun and interesting
you'r watching a MASTER at WORK
don't try to do it in a fancy way you can do it with just basics
actually if you see my code I may look like dumb people