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.
if I may answer... with the if-statement you can stop processing earlier when a field is zero. it would be wasted runtime to loop through the hole array, if the result would be zero anyway. this solution is nice for arrays with bigger size
Yeah for c# the top-voted solution doesn't appear to add MyPoints to the average. I'm new so I'm not sure if there is a mistake here or if I'm missing something.
the if loop seems redundant to me, bc result * 0 would make 0 anyways. or are there any other reasons you used this?
This comment is hidden because it contains spoiler information about the solution
Shouldn't that technically be wrong bc if "yourPoints" are equal to the average it should be flagged as false (Kata description says only true if "yourPoints" are higher).
This comment is hidden because it contains spoiler information about the solution
I'm new to programming. Where in the code did they included "yourPoints" in the average?