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.
8 years old and only 12 solved this thing?
Very curious of what I'm getting into. :-)
speeling error:
* its
fïxed
Is not a very useful message!
thank you very much, I did need to scroll all the way to the right for crucial information :)
I encountered the exact same problem. After re-reading the Description however, I discovered that the range value represents the tolerance for each testpoint in %. My original solution didn't treat the range values as percentages but as absolute values. BTW: You have to scroll the description all the way over to the right to see it (due to the length of the "javascript const references" example to find this detail).
WTF: how on Earth is value 3 on position 1 outside of range 2.01 - 1.5 and 2.01 + 1.5 ??????
Is this all the specs we get for type?
Enjoyable challenge!
i got errors like:
this is disappoint me because if u calculate it will be:
but if u (u know) fix it to 982.269 its will be the right answear
so why do not just return 982.269 instead of 982.2689999999999 ?
Or none at all! This is intentional,
sum([1,2,3], [4,5,6], [7,8,9], () => 1)
=>3
is correct. Evensum([1,2,3], () => Math.random())
is a correct usage ofsum
. The direct analogy is something like[1,2,3].map(() => 1)
=>[1,1,1]
. My guess was that examples #2 and #3 perfectly clarify this behaviour. Do you think I need to explicitly state this in the description?Hi, I agree that it is not clear from the description that the default value must be 0, especially in a case like
sum([], () => 12345)
, I will update the description. Could you elaborate the "one cannot always do the task as explained" a bit further, probably by providing some examples?Description is bad. The function needs to do different things if there is only one array, the passed function may handle only one argument or several (so one cannot always do the task as explained), if we receive a single emtpy array, we have no idea of what should be the default value...
Yes, Node v10.x is set by default.
Well, I'll have a look at it once again later.
Hi catchaser, yes, you are right, the result must be 68. I don't understand why you are seeing this (all test cases expect "0"), I just checked and everything works fine for me. Probably something wrong with codewars' test runners? Are you using Node v10.x?
Loading more items...