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.
I don't think he has a question, I think he's giving more examples about input-output pairs.
@10diieggos I'm not sure I understand your question, since you have just posted a bunch of error messages: if you are getting the above messages like
1, 1, 1, 3, 3 Should be 1000
it is because your code is returning the first part of the message - in this case1, 1, 1, 3, 3
and the kata testing is expecting the second part of the message (i.e. that is the correct answer).So, without seeing your code, it seems like you are returning
1, 1, 1, 3, 3
rather than1000
. You seem to be returning the input by mistake?Read this: https://docs.codewars.com/references/markdown/#code-block
3, 3, 3, 3, 3 Should be 300
3, 3, 3, 3, 3 Should be 300
test 3, 3, 3, 3, 3 Should be 300
1, 1, 1, 3, 3 Should be 1000 --------------
2, 2, 2, 3, 3 Should be 200 -------------
3, 3, 3, 3, 3 Should be 300 -------------
4, 4, 4, 3, 3 Should be 400 -------------
5, 5, 5, 3, 3 Should be 500 -------------
6, 6, 6, 3, 3 Should be 600 -------------
1, 1, 1, 1, 3 Should be 1100 -------------
1, 1, 1, 1, 5 Should be 1150 -------------
2, 4, 4, 5, 4 Should be 450 -------------
3, 4, 5, 3, 3 Should be 350 -------------
1, 5, 1, 3, 4 Should be 250
Fantastic!
I learned a lot from your solution.
I will base my solution on yours.
I'll implement
{length: int/2}
for reduce iterations.This comment is hidden because it contains spoiler information about the solution