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.
okay, someone hates using namespaces! Same here:)
Positive aspects:
shows good practices
1- uses modern C++ language (auto) and standard library
2- does not use depricated parts of the language (uses instread of <math.h>)
Negative aspects:
needs a level of C++ understanding that is not seen in absolute beginners (modf and pow are standard library functions but a novice is also able to create the same functionality using basic C++ calculations)
This comment is hidden because it contains spoiler information about the solution
nice.
In my offense, I do not really think this kyu translates to production that overly much.
This answer is an example of using the Clever button as a "okay, that is nice, but stop fooling around already" button xD
This might be a code golf solution, but not one I would use in production code, for readability reasons.
This comment is hidden because it contains spoiler information about the solution