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.
There are now sample tests in JS but not random ones; there is another issue about the lack of random tests in JS so i'm closing this one
Thanks for the help. I didn't saw that. Now I'll try again. :)
Other language works well, only javascript had the issue and it is fixed now.
There was an issue on reference solution. It is fixed now.
Fixed the issue.
Now it is fixed.
Oh! Thanks!
This is happening in JavaScript and it is in the random tests.
This comment is hidden because it contains spoiler information about the solution
JavaScript random tests seem to use a wrong reference algorithm. Quite possibly the other languages do as well, but I haven't checked that.
It wuold seem this test is wrong.
You don't mention if it's a fixed or a random test, or which language suffers from this. That makes it hard to fix the kata ..
There is a test case:
[ 29, 6, 18 ]
.My answer to this is
(6 + 18) + 29)
.(Cost = 24 + 53 =
77
)The test in the kata expects
100
.Who is wrong here and why?
I wish i had read this before spending hours working on it.
That's not too much of an issue.
Yeah, the sample tests aren't there but the Attempt tests are.
I can't unless you publish it here: is so, don't forget to use the spoiler flag.
But my advise would be to use for loops on a first version, make it pass the tests then try to peak other solutions and to integrate recursion in yours.
Loading more items...