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 see four :)
I agree that it's not always good, but it's not always bad either. Just got to make sure it's clear, and you don't need to rewrite or change it later.
It is needed to add own score as there is a possiblity that you get an empty list (you alone wrote the test). This would result in division by zero.
This comment is hidden because it contains spoiler information about the solution
Maybe problem is less "one-liner obsessive" than "one-liner admiring" people ;)
"Why not?"
-Erling Haaland
This comment is hidden because it contains spoiler information about the solution
Useless comment addicts...
Don't say stupid things.
:D
So we're both haters?
one liner obssesive people obssesive
I wanted to ask why it's redundant, because I thought that you are part of the class so your_score affects average score (which is true).
But when I was writing this comment I realized that although your score affects average it won't affect the overall answer for the question: "Is your_score higher then average in this class?".
The reason for this is that if including your_score in the average calculations increases average then your score was already higher then average so result won't change. The same happens if your score decreases average.
Maybe someone will find this explanation usefull so I'm leaving it here.
Nothing, really. The "solution" is invalid. Probably engineered to pass the random tests most of the time.
This is incorrect, list comprehensions (in most scenarios) are faster than using filter.
jesus lol
Loading more items...