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.
Read the error message. It tells you exactly what's wrong, and it's in your code, not the tests.
Did you know there's a Troubleshooting Guide in the Docs?
This comment is hidden because it contains spoiler information about the solution
round
andabs
, this passes random tests:Same issue.
Similar issue. I'm not sure what the problem is.
Rounding too? Just k!ll me now.
The random generator should just not fscking generate negative numbers. I just fixed this for JS. Generating a completely random
mean
is also bullsh!t. Anyone fixing this, please have a look at how JS does it. ( Testing should probably be updated for the new test framework and explicitly importing things as modules as well. )Why do these problems surface after five years of silence ?!?
@Johan - I've raised the issue above; it seems like there are 4 threads for this same discussion so posting here to close out the sub-thread.
Proof would be a generated testcase and an expected return value that are bullsh!t, separately or in combination. Your, or anyone's, solution code has nothing to do with that. Please stop posting solutions.
@Johan I raised an issue myself above.
@joshred83 - the idea is to use data from tests to show that the error is with the kata; if you read my post hopefully it's clear what the "reporting" should look like.
Hey @joshred83 - it seems you had the same thing as @PDrich101 so see my comment to him just a few minutes ago:
https://www.codewars.com/kata/57c6b44f58da9ea6c20003da/discuss#63a60d1d9803f25147a80faf
TL;DR - basically don't use Numpy
I tried so hard to tell you how to post a useful
Issue
. And you gave us nothing to work with.If it doesn't say "post an
Issue
", do not post anIssue
. If you do post anIssue
, include relevant information. Input, actual output, expected output, and language, at least. There is no need to post your code if the kata really is wrong.Using prod from the math module solved it for me.
Don't think. Prove. Closing.
This comment is hidden because it contains spoiler information about the solution
Loading more items...