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.
The catalog needs 14 Persepolis.
However, in the inventory notes, there is "persepolis x10"
Why does the reference solution expect 14 Persepolis? There are 10 Persepolis in the inventory.
Errors from the random tests:
Why is the expected result 3?
If the index is zero-based, then 3 would be the second 'c' instead of the first 'c'.
Random tests always seem to expect Diamond?
I may need a bigger hint. LOL
What exactly was being tested here??
This comment is hidden because it contains spoiler information about the solution
Why isn't the answer (523681, 999999)? That would produce the desired repeating decimal.
Why is the reference solution using floating point math when an exact integer solution is possible?
Fix the random tests to invalidate this solution:
https://www.codewars.com/kata/reviews/66bce4158fed1ddb86d680b7/groups/66bcef7d8fed1ddb86d68228
This issue was corrected for the fixed tests but random tests still aren't testing anything.
For this "solution":
I got this result:
Also https://www.codewars.com/kata/reviews/66bce4158fed1ddb86d680b7/groups/66bcea6e8fed1ddb86d6818b
The tests aren't testing anything.
I made a mistake in this solution but still passed: https://www.codewars.com/kata/reviews/66bce4158fed1ddb86d680b7/groups/66bce9654a6f487c43156bc3
Some of the edge cases may need explanation.
When the cathetus is equal to the hypotenuse, that could mean that the "other side" of the right triangles is zero, so the four right triangles are all zero-area. Then the inner square is equal in area to hypotenuse ** 2.
But the edge case tests expect 0 for the result. Why?
Still see the following in the desc:
The question remains though. Which line or line segment do you mean by "cathetus"? It could be the shorter leg or the longer leg or maybe it doesn't matter. That is unclear.
Loading more items...