• This comment is hidden because it contains spoiler information about the solution

  • No, it doesn't. Read the error messages:

    Expected: '[4, 3, 2, 6]', instead got: '[\'4\', \'3\', \'2\', \'6\']' // array of numbers vs array of strings
    Expected: 'null', instead got: '[\'2\']'                              // wrong result
    
  • This comment is hidden because it contains spoiler information about the solution

  • This comment is hidden because it contains spoiler information about the solution

  • This shows no indication of a problem with the kata.

  • I'm coing in JS and I pass everythink except one Invalid array that is STDERR.
    I don't understand why cause I'm return null for everything that is not a number or that is not an array.
    Can someone help pls

  • You wrote the answer yourself. If arr is empty, arr[-1] will throw an error.

  • Traceback (most recent call last):
    File "tests.py", line 15, in
    test.assert_equals(up_array([]), None);
    File "/workspace/default/solution.py", line 8, in up_array
    if arr[-1] == 9:
    IndexError: list index out of range

    why

  • ось така помилка вискакує Expected: 'null', instead got: '[NaN, NaN, NaN]' ... я вже й перевіряю всі елементи на NaN і порівнюю з довжиною головного масиву, присвоюючи null для return. де я помиляюсь?

  • Dont ask me

  • This comment is hidden because it contains spoiler information about the solution

  • На проверках больших массивов выскакиевает ошибка: "ReferenceError: BigInt is not defined", хотя странно, в браузере и ноде все работает как надо, кто-то сталкивался с этим?

  • nice kata!

  • Loading more items...