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.
i really didnt want this to be true , but well done .
Your points are not included in the array of your class's points. Do not forget them when calculating the average score!
I like tha math. I was assuming this is incorrect becuase of leaving your_points. But later, I realized that this is mathematically correct.Thanks to @Idiot_with_a_shovel - https://www.codewars.com/users/Idiot_with_a_shovel
kata included instructions to not calculate the user into the average
This comment is hidden because it contains spoiler information about the solution
This is incorrect. by not including your_points, you are not really calculating the average of the class
If you're like me and read this comment and don't get the math explanation - plain english one is that if you add your points to the class average and your points cause that average to rise - that by default means your score was higher than the average of the class. That's why you don't need to add it in this particular example.
True, but this was probably a really old answer. That's why I think Codewars shouldn't obfuscate dates. I don't know how exactly, but I'm sure there's a way to solve the issue of really outdated answers (that were great at the time) being presented as best practices to beginners especially in JS and Python katas.
guess what? I am noob no.1
This comment is hidden because it contains spoiler information about the solution
Wrong algebra. Cod is working perfect but statistic results will unpredictable for small classes. You shoul add your points and yourself to class points see description
Say your peers scores are x1, x2,..., x{n-1}, and yours is a.
Then you want to show that a is greater than the average, written as an inequality you get:
(x1 + x2 + ... + x{n-1} + a) / n < a
Where n is the total number of grades including yours.
Now multiply both sides by n to get
x1 + x2 + ... + x{n-1} +a < n * a
Subtract a on both sides
x1 + x2 + ... + x{n-1} < (n - 1) * a
Now divide by (n - 1)
(x1 + x2 + ... + x{n-1}) / (n - 1) < a
The LHS is the average of the scores without taking into acount your score.
Hope this helps :-)
This comment is hidden because it contains spoiler information about the solution
hey bro you are in all katas 😂😂
Teacher, give me a zero, it's really bad. How do you calculate the average if you don't include yourself?
Loading more items...