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.
I'm thinking of maintaining the code - works for this solution - but not a best practice
This seems like a bad practice as it relys on being an int, if the function were to change to be a float/double then this wouldn't produce correct answer.