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.
The input size is constant for this problem and therefore Big O analysis is not appropriate. Also, premature optimisation sucks.
pretty inefficient as it can be written with O(n) complexity
Actually, everyone just forgot about it. He can change 'classPoints.size()' to '(classPoints.size()-1)' and yourPoint will accumulate in the mean value too.
yourPoints is not used in the average calculation. It's ok?
Thanks for doing it in several lines.
As a beginner the one-liners are interessting,
but often hard to deconstruct.