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.
Could you explain why?
Thanks
I don't remember exactly, but i guess i wrote this because we work with money. Then we should use integers as long as it possible, and only in the end, before showing result convert to floating point. See my solution for example.
This comment is hidden because it contains spoiler information about the solution
Do you have a link or a further explanation on why it's bad? Thanks thanks!
This comment is hidden because it contains spoiler information about the solution
Okay, now it works, thank you for great kata!
Currently it doesn't work at all. I mean service, not this kata.
Retry and tell me if that works.
Got error on random test:
This is bad-bad hack: 'Math.round(total * 100) / 100'
Instead use [385, 193, 97, 49, 10] and at the end of calculation - devide by 100.
This comment is hidden because it contains spoiler information about the solution
Better to return StringBuilder instead of string from reverse method.