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.
You're not even enforcing the use of
splice
.Check this solution out, as well as my own solution.
This kata is terrible by design. There's no point in using a method modifying the array AND returning the same array as the result of the operation (on success the result is an array, but on failure it's boolean - great idea). Because of this senseless decision
filter
is also forbidden as "it allows you to solve the task in a way that was not intended" (this is not even mentioned in the description).Please add random tests.
Whenever I see katas like this, I always wonder what the codewars policy say about editing katas that is not yours!
Issues
reported, you see some dating back to several years (3 years in the case of this particular kata) does it mean these katas should just be left alone?I am sorry, but this Kata does not force you to use any language related features ..... IMO, it should be changed.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Need more tests.
One more.
This comment is hidden because it contains spoiler information about the solution