Ad
  • Custom User Avatar

    Agreed - this is infuriating! It's what initially caused me to bail on this site a couple years ago.

    Sad to see that two years later the devs have still not addressed these problems.

  • Custom User Avatar

    I agree with Happyguy, this whole thing could be avoided to have one example like this: foo123bar001

  • Custom User Avatar

    A triplet here is defined as a sequence of three letters such that each letter occurs somewhere before the next in the given string. "whi" is a triplet for the string "whatisup".

    this is adequate information without giving away too much imo

  • Default User Avatar

    do you atleast understand where or how to incooperate the secret as a variable? I really think it should be added to the function as a parameter.

  • Custom User Avatar

    It leaves me really doubtful.

    . The comments helped me understand the numbers in between strings do not get "incremented," only the numbers at the end.

    Which is exactly what the description says: If the string already ends with a number, the number should be incremented by 1....

    All the rest you say sounds like an overinterpretation of the description (why move all numbers to the end or take into account anything that's not a number? What does in the description let you think you should do that?). I think people struggling with it just don't take the time to read carefully and figure out what the task is. It's not a problem, it happened to me probably hundreds of times, misreading the description and losing a lot of time on a kata because of that. But I'm the culprit and spitting on the kata afterward is not really fair...

    If you are a beginner maybe you should solve a good amount of easier katas before, it may help you to get used to be attentive to details in the descriptions.

  • Custom User Avatar

    I would appreciate you answer to this question: What did you think you had to do in this case before doing the tests?

  • Custom User Avatar

    What did you think you had to do in this case before doing the tests?

    I think the description is clear enough, and still more with the provided examples:

    If the string already ends with a number, the number should be incremented by 1.

  • Custom User Avatar

    Feel free to make suggestions to improve the current specifications in the description.

  • Default User Avatar

    Agreed, I find this frustrating also. FWIW the first thing I've started doing is attempting (not testing) the kata with an empty function except for a console.log('input:', x), to get a better idea up front.