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 3x3 blocks aren't particularly hard. Meanwhile, I got caught learning that if you modify the result of the array slice method, you'll modify the array itself.
Well obviously this kata wouldn't work if there's five or less digits in the input. (Or okay, with five digits it would give the product of all digits in the string.)
I'll leave a mention in the description that the input string has always more than five digits, so that people won't overthink about if there's going to be mischiefs.
edit: at least -> more than
It's fixed now, sorry about that. That test didn't have the correct answer. My final solution is also updated now.
I've tried a better explanation... sorry, english isn't my mother tongue. I hope it is a bit better. I also think the failing error can be used to understand the process.