Ad
  • Custom User Avatar

    If you are talking about an actual hidden test case that isn't doing enough tests, then you will have to specify which programming language you are talking about.

  • Custom User Avatar

    The Sample Test Case is one you are supposed to write yourself. And it is not like this kata is all that hard, so it feels like overkill to add all those.

    The basic idea I had when I made it this kata, was to have users learn that they can't trust the Sample Test Case to be complete and they should expand it themselves if they think they need it.

    If you really want to test your solution, you would submit it anyway, which has all the hidden test cases.

  • Custom User Avatar

    You don't have to post your answer as a comment. Just do the kata again and it will be added to the Solutions section automatically.

  • Custom User Avatar

    (My phone hates this website, accidentally posted two replies.)

  • Custom User Avatar

    You are using your for loop completely wrong. I suggest reading up on how those work first of all.

    Other than that, your code seems very unfinished. You aren't using the numbers argument at all, you are just replacing it with a new value.

    What exactly is it you need help with?

  • Custom User Avatar

    Yup. It is part of why I made this Kata, the solution was so elegant.

  • Custom User Avatar

    Because it wouldn't be a challenge if you just got the input as an array and had to return a tuple.

  • Custom User Avatar

    You are welcome.

    It is based on a TheDailyWTF article titled "Negative Creativity".
    You should give it a read if you need a laugh: http://thedailywtf.com/articles/negative-creativity

  • Custom User Avatar

    Was this supposed to be in reply to someone else comment?

  • Custom User Avatar

    It is a very commom question here. I wrote this to try and help once: comment

    As for your second question, if you want to change the separating characters in the output, you just need to change the parameter of the .join(string) method.
    For example change .join(" ") to .join(",").

  • Custom User Avatar

    Marking as resolved since there was no more information.

  • Custom User Avatar

    Approved.

  • Custom User Avatar

    Cannot approve because:

    Description cannot be approved, recent changes from related record must be merged first.

  • Custom User Avatar

    Approved.

  • Custom User Avatar

    You should look up what ^ means in the programming language as was pointed out.

    If you want to do "power of", then in C# is it Math.Pow(n). Not completely sure which programming language you are using though. Always best if you mention the programming language you are using when asking for help.

    Marking as resolved.

  • Loading more items...