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.
Random tests are comparing the user's results against itself:
See this solution or this one...
There're already a few very similar katas available. In fact, I wouldn't call it any different from
Multiply
...The values should be compared for approximate equality.
Duplicate: https://www.codewars.com/kata/56b22765e1007b79f2000079
odd length arrays in JS :
eg
[ 110, 252, 250, 255, 117 ] Test Passed: Value == '[110 | 252], [250 | 255], [117]'
What's the point of this in the notes? Isn't it passed to the function as an argument directly?
The user can modify the input in Python.
The user can modify the input in JavaScript.
When witing things intended to be strings in the Description, please format them as strings:
"[1 vs. 2], [3 vs. 4]"
( just as you are doing for the function argument ).I don't like the way the inner delimiter is specified either but the outer delimiter ( which is always
", "
) is left implied. We're supposed to reverse-engineer that from a couple of examples, and that's akin to asking us to read your mind.There are odd lengths in JS.
PHP translation added, please check.
well, the kata is retired, but FYI:
"_"
as first char.There's a lot of katas about counting items matching a predicate; nothing new here.