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 for the improvement, I'm fine with your version. But, for some reason I didn't find some button here that could merge your version with mine. Could you tell me if it has to be done manually?
Fixed.
Yeah, you're probably right, custom rounding has not much to do with the essence of the kata itself. Removed that requirement.
What's the problem?
Now it's fixed.
I've fixed that, thank you. If there are no further comments, I am closing this issue.
I'm very interested in how you determined that.
Resolved
I've edited the description, but it's strange to me why this needs to be clarified, especially when there's an example below that specifies rounding -1.5 to -2. Using rudimentary logic skills, you can deduce what type of rounding is being used.
According to arithmetic rounding - everything is correct, -1.5 is rounded to -2. If we are talking about
Math.round()
method, it works mathematically incorrectly with negative numbers. There are no mistakes in the description.I'd suggest you use diffchecker.com. You can compare the array generated by your function and the array generated by the kata. Based on the comparison results, you will be able to detect the error and improve your function.
Approved.
Please fix it.
@SagePtr Fix the description and I'll be able to approve the translation.
Loading more items...