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.
Super easy to read!
I was doing it the same way, but I thought it should be better and managed to shorten it even more.
You can directly return "class_score < your_points", as this evaluates as a boolean already.
If it's true, you return true. If it's false, you return false. Thus, return it directly:
return class_score < your_points
No point making the code do something you already know will not change based on the previous values
How did you do the sum? Do you just declared total_goals = 58 instead of let your code make the sum for you? It's usuless
clean nice!
merely for logging purpose
It has no significance kata-wise. OP probably thought the kata was way too easy (which is true) and wanted to add some extra sauce.
.
Very clever!!
what is the reason of having that message printed?
Dont need i. Just return the leagues
you dont have to put final in. just return the leagues
This comment is hidden because it contains spoiler information about the solution