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.
You do NOT need to add your own score x (but you MAY, as written in the description). Proof :
The mean of the classroom (without your own score x) is : m1=(x1+x2+...+xn)/n.
The mean of the classroom (includind your own score x) is : m2=(x1+x2+...+xn+x)/(n+1)=(nm1+x)/(n+1).
If you know that m1<x then you know that m2<(nx+x)/(n+1) i.e m2<(n+1)x/(n+1) and finally m2<x. Same proof for >.
whats cheatin about it
Because they know basic math. 😉
The results are the same! Aren't they?
It doesn't change the situation. Suppose your point is larger than the average.Adding your point increases the average but still smaller than your point.
If the tests don't use numbers, the kata translator hasn't paid attention.
Can we close the issue and possibly move on, so that I can approve the kata?
I suggested it as ranked 8.
It's literally as really quick kata for someone on their first week of coding just to check they have used the function correctly and to get them used to codewars..
The 5 is the time. I've used the physics law for the speed (that is "s = (d_final - d_init) / time_elapsed"), first to obtain the speed and then to have the time.
I'd recommend going through the methods of Enumerable (see http://ruby-doc.org/core-2.3.1/Enumerable.html) and practicing usage of each one so you can get familiar with them - most of these methods are very useful in the real world and for code kata!