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.
I agree that a class is not appropriated here. But it's a detail of implementation that doesn't have much consequences, and it won't be changed for the reasons I told.
[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".
It's ok. Thanks for considering my work. Approved!
Please review and approve, thanks !
This translation modifies the description : commas in the lists were all over the place.
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.
See post just below.
I agree that a class is not appropriated here. But it's a detail of implementation that doesn't have much consequences, and it won't be changed for the reasons I told.
Thanks to @akar-0 for this translation. Thanks to @dfhwze for approving it. +1 for you both.
This kata makes no sens in JS. It should be just a function not a Array.prototype that not modifying itself.
I have the same problem. It's not broken although I can't seem to figure out how to fix it (I'm writing it in Python).
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.
Why that? The kyu is not given by the author.
Is this really kotlin
6kyu
kata?This comment is hidden because it contains spoiler information about the solution
There is no "in a row" rule. Check the examples in the kata description.
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".
Don't post solutions in Discourse, please.
Loading more items...