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.
Very nice solution!
I get it, but learning gain from this kata is negative. It teaches very bad practice, that's why I raised this comment. Not a big deal, maybe at least some curious begginer will read this.
This kata makes no sens in JS. It should be just a function not a Array.prototype that not modifying itself.
Hi, now I see that you didn't get any answer.
(1)
listOf(...).map { ... }.joinToString(...)
is equal
(2)
listOf(...).joinToString(...) { ... }
Intelij simplifying (1) into (2) automatically.
Is this really kotlin
6kyu
kata?Imho the last test case is invalid.
[1,5,1,2,3] should return 50 not 250. Why twice 1 is counted a 200, when in description there are words like ONE or SINGLE. At least description should be changed.
EDIT. Now I see that I might do this kata wrong. Please check my solutions. I completed it without respecting "in a row order".
1 test in JavaScript is broken.
"1 should equal 0"