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.
the
c = c > 9
is settingc
equal totrue
if there is digit carried. Thetrue
value is coerced to1
in the next iteration (thec += ...
part).This comment is hidden because it contains spoiler information about the solution
Nice to see this solution after solving it the "hard" way. This shows just how important it is to fully understand the problem.
Here, the solutions are so rare that this is probably the best answer for most purposes.