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
Your solution is prone to problems with accuracy of floating point numbers:
Your solution is buggy, it's not a kata issue.
This comment is hidden because it contains spoiler information about the solution
same issue in JS
tests are not broken in C++ (your language)
your code does not adhere to one of the directives:
Ah yes, that was my mistake. Fixed it and it works now, thanks.
Your code does not check for invalid sides correctly.
What does your solution return for
volume = -8, side = -2
? (Hint: it is notfalse
).For some reason my kata passes all basic tests (typescript), but fails random test. Confused with what is wrong, as I followed the description and everything otherwise works.
Approved
python new test framework is required. updated in this fork
Approved
Approved
Scala translation
CoffeeScript translation
That's because the way you check for negative side and volume is not exactly correct. Your solution returns a wrong answer for
volume=-8, side=-2
.Loading more items...