Ad
  • Custom User Avatar

    Thank you! Is this consider an issue for the codewars community?

  • Custom User Avatar

    How long does it take to update? and what amount of honor is the correct amount for solving a 4kyu Kata?

  • Custom User Avatar

    Solving a 4kyu Kata gave me 2 of honor and solving a 7kyu Kata also gave me 2 of honor, how come?

  • Custom User Avatar

    try to read my comment again anter69, what's wrong with the .equals() anyway? I see now that works with "==" but I thought that to compare strings properly you had to use .equals();
    If you could clear that for me, I'd be much appreciated.

  • Custom User Avatar

    Sample tests are too similiar, they all expect 'A B C'!, it would be better if there was at least one different expecting like 'AB C', 'A BC' or even something not using ABC like the real attempt.

  • Custom User Avatar

    Thanks I had a mistake.

  • Custom User Avatar

    In Javascript, is the parameter not an array? because I'm trying to use numbers[i] and it's not working.
    Thank you,

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    your comment helped thank you, sorry for being rude,g964.

  • Default User Avatar

    taking 209917,
    2) the index i of the digit d you took, i as small as possible
    smallest number in 209917 => 0 => index= 1
    3)the index j (as small as possible) where you insert this digit d to have the smallest number.
    result from taking 0, 29917, where can I insert it? at the beginning
    029917 => index where inserted=0
    result=[29917,1,0]

    What am I getting wrong?

  • Default User Avatar

    if it's i and j as small as possible aren't they supposed to be 0 and 0 everytime because there isn't anything smaller than 0

  • Custom User Avatar

    in Javascript

    1. the smallest number you got
    2. the index i of the digit d you took, i as small as possible
    3. the index j (as small as possible) where you insert this digit d to have the smallest number.
      testing(261235, [126235, 2, 0]);
      testing(209917, [29917, 0, 1]);
      testing(285365, [238565, 3, 1]);
      testing(269045, [26945, 3, 0]);
      testing(296837, [239687, 4, 1]);
      the ones marked have the result backwards it should be [29917, 1, 0] and same for the others, how is this approved? if it has very noticeable mistakes in it
  • Default User Avatar

    Thank you! but why doesn't it work by checking like this (arr[i][j]==null) but it does like this arr[i]==null, doesn't it make more sense to check element by element?

  • Default User Avatar

    Cannot read property '0' of null

    I'm probably missing something but I'm checking if(arr[i][j]==null || arr[i][j]==undefined) and I also check if the length is 0, but I still get this error "Cannot read property '0' of null", but it checks green "Test Passed: Value == false" what could the issue be?

  • Loading more items...