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.
Ternary operator to return true or false is unnecessary.
This case will return 1, instead of 0.
This case will return 1, instead of 0.
Zeros?
You do not need to add your points to the array of class points because, mathematically:
a. if the avg of the class is lower than your points, it will continue lower if you include your points.
b. if the avg of the class is equal your points, it will continue equal if you include your points.
c. if the avg of the class is greather than your points, it will continue greather if you include your points.
You can avoid constructions like "if (condition) { return true; } else { return false; }" just by replacing it by "return condition;"
Do not keep the debug on the final code.
Do not keep the debug in the final code.