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.
This comment is hidden because it contains spoiler information about the solution
This is a kumite, not a fork; it shows things but you can't change them from here. If you like the changes ( you can see the exact ones with the
Diff
tab ), you'll have to fork or edit yourself ( or I could do it, but I'd also have so edit or fork ).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.
Description still says "real" number.
Yeah, you're probably right, custom rounding has not much to do with the essence of the kata itself. Removed that requirement.
You can forfeit and see solutions, that's one way. Or you can visit your favorite JavaScript community and ask for help. Or you can visit the
#javascript
channel of Codewars Discord and ask for tips.I'd like to suggest removing of the rounding requirement altogether. It's not needed to illustrate the point of the kata, seems to be artificial, and is defined in a wonky way which does not follow practices of the JS itself.
Just stick to integer indices, it is totally enough. Floats and rounding only cause unnecessary trouble.
i literally do not know where to start and how this is even done
should i forfeit it and see the solutions?
What's the problem?
...this is being ranked anything below 3 kyu? apparently i am no javascript programmer
Now it's fixed.
The description is not fixed. It still mentions rounding half to even. But it should be rounding half away from zero.
I've fixed that, thank you. If there are no further comments, I am closing this issue.
There are fixed tests where rounding half away from zero is required. For instance,
-0.5
rounded half to even is0
. But the expected value is-1
.Loading more items...