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.
wow, my code look not so complicated now
Yeah it took me a while to understand the .format() method. Basically the "%.2f" says to place it to two decimals (0.00) and the ", sum" mean insert the variable sum in that format. Hope that helps anyone who is curious since Wiseguy03's question was from 2 years ago lol
This comment is hidden because it contains spoiler information about the solution
mind locale
咋滴了大哥这是
A Ruby example should be added to the description.
Some tests against storing the argument globally would be nice.
卧槽
Great job !!!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Note that this truncates the number, instead of "rounding" as the description says...
Neat solution. I like that you even skipped tracking the num100s since this is not needed for the result. Ok, could be premature optimization on the other hand ;)
Possible enhancement could be to extract the parts introduced by the comment lines to separate methods.