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.
amazing @adrian-lui
i mean, yeah, but the task specifically asks you to include your points when calculating the class averange :p
Adding yourPoints to the array will NOT change the result, if you think about it. It will change the average point but it will not change the fact that you are higher or lower than the average.
I disagree this being a best practice. It is clever and looks simple. Sure. But it is also not maintainable. As soon as point boundaries change, you have to rewrite the whole logic.
This comment is hidden because it contains spoiler information about the solution
Looks clever, but this code is not easy to maintain. In case points change, and boundaries are no longer divisable by 10, this whole approach has to be rewritten instead of just updating the points.
It's how percent decrease works. Increase in 0.82 times is equal to decrease in 0.18 times.
Assuming this solution does not count yourPoints in average (which was specially mentioned in a task) but still counts as "valid" solution, testing samples are lame.