Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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... :))
What was the input value?
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?
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/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