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.
a < b
is the same asb > a
.Also, map is faster than inject, so I agree that it's not the best solution.
stop, but what about - "Your points are not included in the array of your classes points. For calculating the average point you may add your point to the given array!"?
only if the possible points can be a float or the boundary is changed to be inclusive
Don't you need to make the average a float?
This comment is hidden because it contains spoiler information about the solution
I'm kicking myself so hard right now for not thinking of this solution!
Excellent work!
I'd personally wrap the
n * c
in parantheses, since a lot of people don't have order of operation precedence memorized and it could save them a few seconds reading it.