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.
Check the details section:
"For calculating the average point you may add your point to the given array!"
To my understanding that adding yourPoints is optional
Why do you have a "+" for the "i" and "j" if you know that is a array of numbers?
Missing yourPoints as part of the average...
Unfortunately, this solution doesn't work anymore for this task
Thank you, switching NodeJS version helped me also
Now it works
The same issues for me, I also met the similar issue for one other ES2015 kata.
I have the same issue
This comment is hidden because it contains spoiler information about the solution
A good kata. However more tests should be added. I accidentally submitted solution that returned true for ))
Done: users are going for very bad and inefficient approaches, it has nothing to do with the test code. I would gladly implement something to deal with it, but right now CW is refusing to save any edit to the kata.
You are evidentely modifying the array in place, which is bad practice unless required.
Also, I see no part of the description forbidding the use of negatives, but I can quickly fix that (and it has nothing to do with the problem).
Actually I fear your code was faulty, needlessly modifying the array in place. Fixed that, so that even not so efficient and bad practice solutions might work.
Actually modifying the array is considered bad practice if unnecessary.
Btw, I upvoted myjinxin2015, as he definitely deserved it.
Hi myjinxin2015 ! I modified my code following your advice and it worked.
I imagine approximately why the random tests failed, interesting anyway :)
Thanks !
Loading more items...