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.
There are lots of good case to use
splice
.For example, remove or replace some items in specific index.
But you choose the one, that remove multi specific items?
Unpublishing as an old, abandoned kata of a low quality.
You're not even enforcing the use of
splice
.Check this solution out, as well as my own solution.
This comment is hidden because it contains spoiler information about the 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.
I can't believe it. :(
Great comment.
If you have an improved version in mind, that is not a duplicate of another already existing kata, maybe you could post a new kata on your own...
(actually, what CW lacks too is moderators who would be able to unpublish old/low quality katas that are still in beta... :/ )
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've never used CoffeeScript before, but I trust that you've tested it so I'll be happy to add your translation. Wow, I haven't been on Codewars for a few months, but I'm glad to see so many people liked the kata.
Hi, I've added a CoffeeScript translation, if you want to approve it, instructions for the approval process are here.
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
The absolute worst part is the w3schools link at the end, though.
Loading more items...