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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Killed it. Thanks.
I've added the last two tests.
Also, I've changed the structure of the random testing. See if it works now.
I should clarify these are working in the basic sample tests but not in the final random tests.
Maybe I wrote down the wrong one because I see that
[2,3,6]
does work but here are more examples that are expecting false but I think should be true:[2,6,9,4,5], 14
9+5 = 14
[2,4,8], 12
4+8 = 12
[5,6,4,8,1], 12
4+8 = 12
[7,2,3,1,6,5], 11
6+5 = 11
Not sure what you are referring to.
[2,3,6], 9
works just fine in the JS test cases. For your comfort, I have added it as one the of the test cases. Refresh and you will see.Some tests (JS) seem like they should be true but are expecting false. For example:
3 + 6 = 9
9 % 9 = 0 // true
9 + 5 = 14
14 % 14 = 0 // true
Test cases updated.
Ok so it's supposed to include the duplicate strings in the solution. That's fine but you shoud update your test cases otherwise it's very confusing.
Your code is incorrect.
Actual and expected are flipped for JS.
Are the test cases correct? My solution is outputting the correct value based on the information in the testing case but still flagging it as incorrect.
For example:
Test case returns:
You said to "Look at the args and map it to something else" but I can't seem to get that to pass. I've tried the obvious but that doesn't seem to be correct (returning args as an array, using array methods on the args, returning nothing, returning 'pointless', etc.).
Is there any logic or formula required at all?