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.
done
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
But you code this function yourself!
This comment is hidden because it contains spoiler information about the solution
Here's your chance to learn! Tear this code apart, examine its entrails, figure out how each part works; go!!!1!
Cause the description has no sense, read it as "Continue to do this until you have max two digits number left and forget about divisibility at all".
154 has 3 digits.
It can be simpler. Like move Math.floor outside of the inner loop...
This comment is hidden because it contains spoiler information about the solution
But I think you're not seeing the forest for the trees here. The approach itself is incorrect (try inputs like
aaab
provided by other commenters); I think that's the main issue first and foremostTrue, I have no idea why I've decided to use this function
;)
Well, give the Python version a whirl then. It's an old Kata, before convenience features were introduced
This comment is hidden because it contains spoiler information about the solution
Loading more items...