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
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
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
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.
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?