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.
Masterpiece, guy you are smart, i love the smart work
If I'd submitted a brute force you never would have seen it because it would have been lost in the sea of thousands of other brute force solutions (including yours). I had no reason to save it, otherwise I'd post it here for you, but I promise there was nothing interesting about it.
This comment is hidden because it contains spoiler information about the solution
No, I wrote a brute force algorithm then refactored when I realized there were so few solutions. Maybe using Google would have been smarter, but part of the fun is puzzling it out for yourself.
He just used google.
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.