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.
@jahironr Please don't spread such foolishness...
There is no error in your code. Error is in test function which generates floats.
As andreydenisov said, you can "correct" your code by converting inputs to integers or you can use integer division
\\
instead of classic division\
.Theres a bug in your code, because I proved it in Javascript and had an error. Expected: 60, Got: 80.53.
Try adding
in the beginning of your function. Solved the problem for me.