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.
Your solution is easy to read and contains functions that I did not know about previously. I learned some Javascript from it.
I should go through it one more time to pick up a couple more new things I didn't know before.
Your assumptions are incorrect.
For .recv to be called, you need to follow the spec. Re-read third paragraph.
frequesncies
?? replace went wrong?This comment is hidden because it contains spoiler information about the solution
I like your use of .some !
You must explicitly say about any rounding needed to complete tests ot kata itself.
I (and I guess not only me) am outraged that I am forced to play game "guess where there is rounding, and which one it is". And that it takes literally 20 times more time than finding an actual solution.
Not correct Python tests.
As per description "If array contains not numbers it returns string 'array should contain only numbers'. So make sure all elements of the array are numbers" => thus only numbers are allowed in a list/array.
But the first test case is:
Since
'8'
is not a number we should get a'array should contain only numbers'
string.I'm getting the same issue.
Testing for [5, 1]
It should work for random inputs too - Expected: "array should contain only numbers", instead got: [false, false]
I had to look at kata discussion to find out what may be wrong.
And I found out that there actually was a discussion about empty array handling, but it was not finished.
In my opinion empty array looks like a pretty valid input, so the output should also be an empty array.
Right now I cant think of any reason why there should be 'array should contain only numbers'-output for an empty array. I mean empty array does not really contain anything that can be called 'not a number' since it does not contain, well, anything :)