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.
[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".
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"