Ad
  • 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?