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.
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.
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.
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.
(My phone hates this website, accidentally posted two replies.)
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?
Yup. It is part of why I made this Kata, the solution was so elegant.
Because it wouldn't be a challenge if you just got the input as an array and had to return a tuple.
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
Was this supposed to be in reply to someone else comment?
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(",")
.Marking as resolved since there was no more information.
Approved.
Cannot approve because:
Approved.
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...