Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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 up for .. 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.

  • Custom User Avatar

    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!

  • Custom User Avatar

    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.