Ad
  • Custom User Avatar

    the unit is not relevant for the calculation in this case

  • Default User Avatar

    I tested the Input and got the right Output with 41 included.
    Check your code.

  • Custom User Avatar

    not an issue, unless you can "prove" it: what's the input? Without that, nobody can tell if your code is wrong or the tests. You can reopen with more information if you can prove the problem is in the tests.

    Note: it's most likely your code, tho (look at the number of completions)

    Cheers

  • Custom User Avatar

    That's a problem with your code, not a kata issue. Start by printing the input, your code fails tests like this one:

    assert.deepEqual(sortArray([-45, 23]),[-45, 23]);