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.
Yes it does:
Could anyone please explain to me the application of this kata logic in the real world where it has to be reversed twice?
It does, but the order of the resulting array is not the expected one, maybe you can change how your code does that (it is possible).
This comment is hidden because it contains spoiler information about the solution
I think that'll solve only those 2 cases and it'll fail with some others.
Do this:
a.push(a.shift())
[Assuming that you're returning arraya
and this is the general structure of the failure message]javascript. I was doing based on the order of the array using '!includes' function
Javascript it seems, you can see from the description you should start removing from the beginning of the array, it seems you're doing it from the end instead.
language?
This comment is hidden because it contains spoiler information about the solution