• Custom User Avatar

    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.

  • Custom User Avatar

    This kata makes no sens in JS. It should be just a function not a Array.prototype that not modifying itself.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Is this really kotlin 6kyu kata?

  • Custom User Avatar

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

  • Custom User Avatar

    1 test in JavaScript is broken.
    "1 should equal 0"