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.
I showed my Dad this solution and he went out for smokes
a good summary of a confusing line of code!
True and 1 are the same thing.
Such test case has mostly been added across all languages with that being
[-1, 2]
. Also, such case will not affect the output , so closing!The question says that it's a square cube, correct me if I'm wrong but the volume of square cube is (side ** 3)
Recommend changing the wording on this kata. It should mention the ice cube is perfectly rectangular.
handled
handled
(oops...)
Funny how you need the Math module to use sqrt but not to exponentiate by 1/2. XD
I voted you for best practices because I think solutions should be READABLE and not just concise.
I suggest adding a test case where the first digit != the square of itself.
This comment is hidden because it contains spoiler information about the solution
Your kata is missing test cases.