• Custom User Avatar

    Empty your mind.

    Now recursion can flow or it can crash.

    Be recursion, my friend)))

  • Custom User Avatar

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

  • Custom User Avatar

    Ok, so after doing doing a few more questions on this site I figured out that I got the wrong answer, but as someone coming for LC and a few other sites I was expecting that the site should give the wrong answer and the right answer in 2 seperate lines like LC does. That's why I'm extra confused about the way this sites tell me I have wrong answers. Thanks!

  • Custom User Avatar

    You are still in the phase where your inexperience bestows upon you a disproportionate sense of infallibility.
    The tests are fine.
    You have a bug in your code.

    hint: note how there are no even numbers in your output.

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Default User Avatar

    apologies, my code is wrong here as I was taking the odd numbers to a new array and then inserting even ones at their index locations which made repeating numbers insert at first index... :))

  • Custom User Avatar
    [-37, -2, -2, -23, -18, 44, 16, -19] should equal [-37, -2, -23, -18, 44, 16, -19, -2]
    #    your function returned this                        this was the expected value
    

    What was the input value?

  • Default User Avatar

    There is an issue with negative numbers it seems, doesn't allow the kata to pass, e.g. [-37, -2, -2, -23, -18, 44, 16, -19] should equal [-37, -2, -23, -18, 44, 16, -19, -2]

    -2 is even, right? so why should one of the -2 be moved to the end of the list?

  • Custom User Avatar

    The logs tells you your result should equal correct result. Tests are most likely good, and however you don't give even us the input and your result is obviously incorrect. Please don't raise issues lightly and read carefully this: https://docs.codewars.com/training/troubleshooting/

  • Default User Avatar

    there is an error in 'attempt' tests which block to pass this kata.
    Example:
    "Python"
    Test log showed:
    [11, 1, 11, 11, 2, 1, 111, 0] should equal [1, 1, 5, 11, 2, 11, 111, 0]

    as you can see in test data there are 3 occurances of '11' but in expected result - only 2

    the same problem with all other failed tests, missing values in input that are expected in output or vice versa

  • Custom User Avatar

    approved

  • Loading more items...