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.
Ruby translation kumited, please check (and approve :-))
I think the description should state that the function is case sensitive
The result shouldn't be rounded (instead
test.assert_approx_equals
should be used: see this) because the random tests keep hitting the rounding boundaries (due to the nature of the task):The unrounded result is
31.05
, and the reference solution fails to recognize this.