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.
This comment is hidden because it contains spoiler information about the solution
Please do not rely on examples to specify behaviour. Specify explicitly.
Specify edge cases ( mostly everything to do with
[]
, in or out ).That is not how people might expect splitting on an index to work. Make losing the indexed element explicit.
Extending prototypes is a valid part of the language. But extending prototypes, especially in the case of
Array
, requires care, specifically to make the extension non-enumerable ( look upfor .. in
). This should be specified and tested. ( This is a more nuanced view; some people say you should not extend prototypes at all. )A test for
[ something ].split(0)
is missing.I can't figure out what you want from my code. What are the "elements" that can be unqiue or duplicates? If an element is just an item in the array, then the original non-morse cleartext would be unique or duplicates. If it's the individual morse code versions of the characters, then the original non-morse cleartext characers would be unique or duplicates.
Please help!
Is it any different from all the existing morse code katas and count duplicate katas?
It's not an exact duplicate of one kata, but it's definitely a duplicate of 2-3 katas combined. So it's still a duplicate.