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.
Thanks a lot! Fixed it
Approved
Approved
The same is happening to me in the C version. Not passing the tests because of that.
sorry man its my first kata ill fix it
Have added a few valid swaps for sample tests
fixed, but ideally the entire test suite needs an overhaul
Apparently, NOT all numbers were included when calculating the money for each part. Hidden spec on how to treat 0.
The description is very JS specific in how to round. This doesn't lend itself well for translations.
i fixed the wrong, thank you :)
sorry, i am use a translate app, i am a Chinese
Done! Thanks for the suggestion.;)
Updated description:
After you perform all the calculations round the result to cents (x.5 should be rounded up, less then x.5 should be rounded down) example: 10.545 ==> 10.55, 10.5449 ==> 10.54
"nearest rounding" still doesn't specify if
x.5
should be rounded up, down, to even, or to odd ( and I still might be forgetting options ).Floats cannot encode lots of values, like
0.10
. Fixed point ( to include integers ) is a much better representation ( but requires rounding when calculating percentages ). There is no way to have your cake and eat it when designing kata about money.Loading more items...