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.
Rust translation!
Still, one of sentences suggests the stronger requirement: "[...] find out whether the cuboid has equal sides (= is a cube)".
EDIT: okay I see you updated it.
It doesn't say if it is a cube it says if it could be:
And that has already been mentioned here: https://www.codewars.com/kata/58d248c7012397a81800005c/discuss#642de3f56555a387e8795e45
Anyways, I've changed the description to replace
has
and=
forcould have
andcould be
.This comment is hidden because it contains spoiler information about the solution
Approved
Lua translation!
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
Loading more items...